#004ba3
a dark, electric blue · cool · closest name: royalblue
RGB
0, 75, 163
HSL
212°, 100%, 32%
CMYK
100, 54, 0, 36
Luminance
0.0768
Every format
| HEX | #004ba3 |
| RGB | rgb(0, 75, 163) |
| HSL | hsl(212, 100%, 32%) |
| CMYK | cmyk(100%, 54%, 0%, 36%) |
| LAB | lab(33.3 16.4 -52.8) |
| LCH | lch(33.3 55.3 287.3) |
| OKLCH | oklch(0.430 0.156 257.6) |
Copy-ready code
/* CSS */
color: #004ba3;
background-color: #004ba3;
/* Tailwind (arbitrary) */
class="text-[#004ba3] bg-[#004ba3]"
/* SCSS */
$brand: #004ba3;
/* SwiftUI */
Color(red: 0.000, green: 0.294, blue: 0.639)
/* Android */
Color.parseColor("#004ba3")Accessibility — WCAG contrast
Aa
#004ba3 on white: 8.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#004ba3 on black: 2.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green29.4%
Blue63.9%
CMYK percentages
Cyan100.0%
Magenta54.0%
Yellow0.0%
Key (black)36.1%
Color previews
#004ba3 text on a black background
contrast 2.54:1
Card sample
#004ba3 text on a white background
contrast 8.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #004ba3;
Background color
Panel with #004ba3 background
background-color: #004ba3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #004ba3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 75, 163, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 75, 163, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004ba3; background: linear-gradient(135deg, #004ba3, #2200A3);