#291788#291788
#291788 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.172 H 278.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #291788 |
|---|---|
| RGB | rgb(41, 23, 136) |
| HSL | hsl(250, 71%, 31%) |
| HSV | hsv(250, 83%, 53%) |
| CMYK | cmyk(69.9%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(19.48, 42.36, -58.87) |
| CIE-LCH | lch(19.48, 72.52, 305.74°) |
| OKLab | oklab(32.48% 0.0243 -0.17) |
| OKLCH | oklch(32.48% 0.172 278.1) |
| XYZ | xyz(5.6633, 2.8613, 23.5416) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.58
Indigo (survey)
#380282
ΔE00 3.76
Darkblue
#00008B
ΔE00 4.18
Midnight Blue
#191970
ΔE00 4.37
Navy
#000080
ΔE00 4.65
Cobalt Blue
#030AA7
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291788 #768817
analogous
#173D88 #291788 #611788
triadic
#291788 #882917 #178829
tetradic
#291788 #88173D #768817 #178861
square
#291788 #88173D #768817 #178861
split-complementary
#291788 #886117 #3D8817
monochromatic
#09051F #190E54 #291788 #3920BC #553BDE
Accessibility & contrast
On white
13.36
#291788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#291788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291788
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291788 | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #291788; /* rgb */ color: rgb(41, 23, 136); /* oklch */ color: oklch(32.5% 0.172 278.1);
Tailwind
colors: {
custom: {
50: '#7258ac',
500: '#291788',
950: '#000000',
},
}SCSS
$custom: #291788; $custom-light: #7258ac; $custom-dark: #000000;
JSON
{
"hex": "#291788",
"rgb": {
"r": 41,
"g": 23,
"b": 136
},
"hsl": {
"h": 249.558,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32484,
"c": 0.17177,
"h": 278.1
},
"luminance": 0.02862
}Semantic roles & 50–950 ramp
primary
#291788
secondary
#A8BC3F
accent
#EE3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F