#291F98#291F98
#291F98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.184 H 275.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #291F98 |
|---|---|
| RGB | rgb(41, 31, 152) |
| HSL | hsl(245, 66%, 36%) |
| HSV | hsv(245, 80%, 60%) |
| CMYK | cmyk(73%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(22.72, 43.40, -63.46) |
| CIE-LCH | lch(22.72, 76.88, 304.37°) |
| OKLab | oklab(35.28% 0.0162 -0.1835) |
| OKLCH | oklch(35.28% 0.184 275) |
| XYZ | xyz(7.0701, 3.7177, 30.0447) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.62
Cobalt Blue
#030AA7
ΔE00 3.96
Indigo Blue
#3A18B1
ΔE00 4.13
Royal Blue (survey)
#0504AA
ΔE00 4.48
Ultramarine
#2000B1
ΔE00 4.81
Darkblue
#00008B
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291F98 #8E981F
analogous
#1F5198 #291F98 #651F98
triadic
#291F98 #98291F #1F9829
tetradic
#291F98 #981F51 #8E981F #1F9865
square
#291F98 #981F51 #8E981F #1F9865
split-complementary
#291F98 #98651F #51981F
monochromatic
#0E0A32 #1B1565 #291F98 #3729CB #6055DC
Accessibility & contrast
On white
12.04
#291F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#291F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291F98
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291F98 | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #291f98; /* rgb */ color: rgb(41, 31, 152); /* oklch */ color: oklch(35.3% 0.184 275.0);
Tailwind
colors: {
custom: {
50: '#755eb8',
500: '#291f98',
950: '#000000',
},
}SCSS
$custom: #291f98; $custom-light: #755eb8; $custom-dark: #000000;
JSON
{
"hex": "#291f98",
"rgb": {
"r": 41,
"g": 31,
"b": 152
},
"hsl": {
"h": 244.959,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.35278,
"c": 0.18421,
"h": 275
},
"luminance": 0.03718
}Semantic roles & 50–950 ramp
primary
#291F98
secondary
#B7C053
accent
#E93FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980