#291F7B#291F7B
#291F7B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.148 H 279.0°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #291F7B |
|---|---|
| RGB | rgb(41, 31, 123) |
| HSL | hsl(247, 60%, 30%) |
| HSV | hsv(247, 75%, 48%) |
| CMYK | cmyk(66.7%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(19.56, 33.80, -50.51) |
| CIE-LCH | lch(19.56, 60.77, 303.79°) |
| OKLab | oklab(32.12% 0.023 -0.1458) |
| OKLCH | oklch(32.12% 0.148 279) |
| XYZ | xyz(4.9784, 2.8811, 19.0288) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.64
Royal
#0C1793
ΔE00 4.55
Indigo (survey)
#380282
ΔE00 5.67
Dark Royal Blue
#02066F
ΔE00 5.93
Deep Blue
#040273
ΔE00 6.28
Navy
#000080
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291F7B #717B1F
analogous
#1F437B #291F7B #571F7B
triadic
#291F7B #7B291F #1F7B29
tetradic
#291F7B #7B1F43 #717B1F #1F7B57
square
#291F7B #7B1F43 #717B1F #1F7B57
split-complementary
#291F7B #7B571F #437B1F
monochromatic
#080619 #19134A #291F7B #392BAC #5444D0
Accessibility & contrast
On white
13.32
#291F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#291F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291F7B
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291F7B | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #291f7b; /* rgb */ color: rgb(41, 31, 123); /* oklch */ color: oklch(32.1% 0.148 279.0);
Tailwind
colors: {
custom: {
50: '#6f5ca2',
500: '#291f7b',
950: '#000000',
},
}SCSS
$custom: #291f7b; $custom-light: #6f5ca2; $custom-dark: #000000;
JSON
{
"hex": "#291f7b",
"rgb": {
"r": 41,
"g": 31,
"b": 123
},
"hsl": {
"h": 246.522,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.32115,
"c": 0.14757,
"h": 279
},
"luminance": 0.02881
}Semantic roles & 50–950 ramp
primary
#291F7B
secondary
#A3AE48
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F