#291F7D#291F7D
#291F7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.150 H 278.6°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #291F7D |
|---|---|
| RGB | rgb(41, 31, 125) |
| HSL | hsl(246, 60%, 31%) |
| HSV | hsv(246, 75%, 49%) |
| CMYK | cmyk(67.2%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(19.77, 34.48, -51.44) |
| CIE-LCH | lch(19.77, 61.92, 303.83°) |
| OKLab | oklab(32.32% 0.0226 -0.1485) |
| OKLCH | oklch(32.32% 0.15 278.6) |
| XYZ | xyz(5.1049, 2.9316, 19.6949) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.83
Royal
#0C1793
ΔE00 4.27
Indigo (survey)
#380282
ΔE00 5.56
Dark Royal Blue
#02066F
ΔE00 5.97
Navy
#000080
ΔE00 6.26
Darkblue
#00008B
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291F7D #737D1F
analogous
#1F447D #291F7D #581F7D
triadic
#291F7D #7D291F #1F7D29
tetradic
#291F7D #7D1F44 #737D1F #1F7D58
square
#291F7D #7D1F44 #737D1F #1F7D58
split-complementary
#291F7D #7D581F #447D1F
monochromatic
#09071B #19134C #291F7D #392BAE #5445D1
Accessibility & contrast
On white
13.24
#291F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#291F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291F7D
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291F7D | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #291f7d; /* rgb */ color: rgb(41, 31, 125); /* oklch */ color: oklch(32.3% 0.150 278.6);
Tailwind
colors: {
custom: {
50: '#6f5ca4',
500: '#291f7d',
950: '#000000',
},
}SCSS
$custom: #291f7d; $custom-light: #6f5ca4; $custom-dark: #000000;
JSON
{
"hex": "#291f7d",
"rgb": {
"r": 41,
"g": 31,
"b": 125
},
"hsl": {
"h": 246.383,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.32325,
"c": 0.15021,
"h": 278.6
},
"luminance": 0.02932
}Semantic roles & 50–950 ramp
primary
#291F7D
secondary
#A5B048
accent
#E344D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F