#041FAB#041FAB
#041FAB is a dark, highly saturated blue. Relative luminance 0.039; OKLCH L 36.1% C 0.215 H 264.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #041FAB |
|---|---|
| RGB | rgb(4, 31, 171) |
| HSL | hsl(230, 95%, 34%) |
| HSV | hsv(230, 98%, 67%) |
| CMYK | cmyk(97.7%, 81.9%, 0%, 32.9%) |
| CIE-LAB | lab(23.49, 47.89, -73.79) |
| CIE-LCH | lch(23.49, 87.97, 302.98°) |
| OKLab | oklab(36.06% -0.02 -0.2139) |
| OKLCH | oklch(36.06% 0.215 264.7) |
| XYZ | xyz(7.8882, 3.9450, 38.8659) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 3.33
Royal
#0C1793
ΔE00 3.63
Royal Blue (survey)
#0504AA
ΔE00 3.79
Indigo Blue
#3A18B1
ΔE00 3.96
Ultramarine
#2000B1
ΔE00 4.11
True Blue
#010FCC
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#041FAB #AB9004
analogous
#0473AB #041FAB #3C04AB
triadic
#041FAB #AB041F #1FAB04
tetradic
#041FAB #AB0473 #AB9004 #04AB3C
square
#041FAB #AB0473 #AB9004 #04AB3C
split-complementary
#041FAB #AB3C04 #73AB04
monochromatic
#010933 #03146F #041FAB #052AE7 #2F50FA
Accessibility & contrast
On white
11.74
#041FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#041FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #041FAB
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##041FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##041FAB | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040AF
Deuteranopia (green-blind)
#002FA9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #041fab; /* rgb */ color: rgb(4, 31, 171); /* oklch */ color: oklch(36.1% 0.215 264.7);
Tailwind
colors: {
custom: {
50: '#725ec6',
500: '#041fab',
950: '#000000',
},
}SCSS
$custom: #041fab; $custom-light: #725ec6; $custom-dark: #000000;
JSON
{
"hex": "#041fab",
"rgb": {
"r": 4,
"g": 31,
"b": 171
},
"hsl": {
"h": 230.299,
"s": 95.429,
"l": 34.314
},
"oklch": {
"l": 0.36061,
"c": 0.21485,
"h": 264.7
},
"luminance": 0.03946
}Semantic roles & 50–950 ramp
primary
#041FAB
secondary
#D7BC34
accent
#DC29FF
background
#F7F5FC
surface
#EEE9F8
border
#C9C5D1
text
#0A0413
muted
#7C7982