#291B7C#291B7C
#291B7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 279.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #291B7C |
|---|---|
| RGB | rgb(41, 27, 124) |
| HSL | hsl(249, 64%, 30%) |
| HSV | hsv(249, 78%, 49%) |
| CMYK | cmyk(66.9%, 78.2%, 0%, 51.4%) |
| CIE-LAB | lab(18.84, 36.45, -52.33) |
| CIE-LCH | lch(18.84, 63.77, 304.86°) |
| OKLab | oklab(31.64% 0.0255 -0.151) |
| OKLCH | oklch(31.64% 0.153 279.6) |
| XYZ | xyz(4.9433, 2.7101, 19.3275) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.69
Royal
#0C1793
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.68
Dark Royal Blue
#02066F
ΔE00 5.20
Navy
#000080
ΔE00 5.43
Deep Blue
#040273
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291B7C #6E7C1B
analogous
#1B3E7C #291B7C #5A1B7C
triadic
#291B7C #7C291B #1B7C29
tetradic
#291B7C #7C1B3E #6E7C1B #1B7C5A
square
#291B7C #7C1B3E #6E7C1B #1B7C5A
split-complementary
#291B7C #7C5A1B #3E7C1B
monochromatic
#080519 #18104A #291B7C #3A26AE #533DD5
Accessibility & contrast
On white
13.62
#291B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#291B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291B7C
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291B7C | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #291b7c; /* rgb */ color: rgb(41, 27, 124); /* oklch */ color: oklch(31.6% 0.153 279.6);
Tailwind
colors: {
custom: {
50: '#6f5aa3',
500: '#291b7c',
950: '#000000',
},
}SCSS
$custom: #291b7c; $custom-light: #6f5aa3; $custom-dark: #000000;
JSON
{
"hex": "#291b7c",
"rgb": {
"r": 41,
"g": 27,
"b": 124
},
"hsl": {
"h": 248.66,
"s": 64.238,
"l": 29.608
},
"oklch": {
"l": 0.31639,
"c": 0.15319,
"h": 279.6
},
"luminance": 0.02711
}Semantic roles & 50–950 ramp
primary
#291B7C
secondary
#A0B043
accent
#E741CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F