Blue Color Codes: Hex Chart, Shades & UI Palettes
Blue is the cornerstone of modern interface architecture. From trust-building corporate navbars to vibrant SaaS action buttons, discover popular blue HEX codes, RGB/HSL conversions, 50-950 Tailwind shades, and accessibility contrast standards.
Popular Blue Hex Color Codes
Click any swatch to copy its HEX code directly to your clipboard:
Blue Shades Scale (50 to 950)
Standard 11-step design system scale calculated for modern UI applications. Light tints (50β200) serve as table backgrounds and alert containers, core mid-tones (500β600) power interactive buttons, and deep dark shades (800β950) provide high-contrast text and dark mode surfaces.
Want custom shades for any brand hex? Use our interactive Color Shades Generator.
Harmonious UI Palette Ideas with Blue
How to Use Blue in Modern CSS
Accessibility and WCAG Contrast Considerations
When designing with blue, ensure your text passes WCAG 2.1 Level AA (4.5:1 ratio):
- White text on Blue: Royal Blue
#2563EBachieves a 4.56:1 contrast ratio on white text (Level AA passed). For enhanced Level AAA compliance, use Blue 700#1D4ED8(5.8:1) or Navy#1E3A8A(9.4:1). - Blue text on Light Background: Never use Sky Blue
#87CEEBor Light Blue for body text against a white backgroundβit fails contrast severely (1.5:1). Instead, use Blue 800 (#1E40AF) or Blue 900 (#1E3A8A). - Test your custom combinations live with our WCAG Color Contrast Checker.
Frequently Asked Questions About Blue Color Codes
What is the hex code for pure blue in CSS? +
#0000FF (RGB: 0, 0, 255). However, for digital UI design, modern designers prefer #2563EB or #1D4ED8 because pure blue is overly saturated for prolonged viewing.What is the difference between Sky Blue and Navy Blue? +
#87CEEB) has a high lightness value (73%) and low contrast against white, making it ideal for decorative badges or subtle backgrounds. Navy Blue (#000080) has low lightness (25%) and exceptional 12:1 contrast against white, making it ideal for primary typography and dark surfaces.