#291F87#291F87
#291F87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.163 H 277.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #291F87 |
|---|---|
| RGB | rgb(41, 31, 135) |
| HSL | hsl(246, 63%, 33%) |
| HSV | hsv(246, 77%, 53%) |
| CMYK | cmyk(69.6%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(20.83, 37.84, -56.01) |
| CIE-LCH | lch(20.83, 67.59, 304.04°) |
| OKLab | oklab(33.39% 0.0203 -0.1618) |
| OKLCH | oklch(33.39% 0.163 277.2) |
| XYZ | xyz(5.7762, 3.2001, 23.2303) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Midnight Blue
#191970
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 5.64
Darkblue
#00008B
ΔE00 5.69
Navy
#000080
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291F87 #7D871F
analogous
#1F4987 #291F87 #5D1F87
triadic
#291F87 #87291F #1F8729
tetradic
#291F87 #871F49 #7D871F #1F875D
square
#291F87 #871F49 #7D871F #1F875D
split-complementary
#291F87 #875D1F #49871F
monochromatic
#0B0823 #1A1455 #291F87 #382AB9 #584BD6
Accessibility & contrast
On white
12.80
#291F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#291F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291F87
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291F87 | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #291f87; /* rgb */ color: rgb(41, 31, 135); /* oklch */ color: oklch(33.4% 0.163 277.2);
Tailwind
colors: {
custom: {
50: '#715dab',
500: '#291f87',
950: '#000000',
},
}SCSS
$custom: #291f87; $custom-light: #715dab; $custom-dark: #000000;
JSON
{
"hex": "#291f87",
"rgb": {
"r": 41,
"g": 31,
"b": 135
},
"hsl": {
"h": 245.769,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.33394,
"c": 0.1631,
"h": 277.2
},
"luminance": 0.03201
}Semantic roles & 50–950 ramp
primary
#291F87
secondary
#AEB84A
accent
#E642D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F