#291B98#291B98
#291B98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.188 H 275.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #291B98 |
|---|---|
| RGB | rgb(41, 27, 152) |
| HSL | hsl(247, 70%, 35%) |
| HSV | hsv(247, 82%, 60%) |
| CMYK | cmyk(73%, 82.2%, 0%, 40.4%) |
| CIE-LAB | lab(22.02, 45.41, -64.60) |
| CIE-LCH | lch(22.02, 78.97, 305.11°) |
| OKLab | oklab(34.8% 0.0179 -0.1868) |
| OKLCH | oklch(34.8% 0.188 275.5) |
| XYZ | xyz(6.9720, 3.5216, 30.0120) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.30
Cobalt Blue
#030AA7
ΔE00 3.38
Royal Blue (survey)
#0504AA
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 3.98
Ultramarine
#2000B1
ΔE00 4.23
Darkblue
#00008B
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#291B98 #8A981B
analogous
#1B4B98 #291B98 #671B98
triadic
#291B98 #98291B #1B9829
tetradic
#291B98 #981B4B #8A981B #1B9867
square
#291B98 #981B4B #8A981B #1B9867
split-complementary
#291B98 #98671B #4B981B
monochromatic
#0D0930 #1B1264 #291B98 #3724CC #5E4EE0
Accessibility & contrast
On white
12.32
#291B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#291B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #291B98
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##291B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##291B98 | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #291b98; /* rgb */ color: rgb(41, 27, 152); /* oklch */ color: oklch(34.8% 0.188 275.5);
Tailwind
colors: {
custom: {
50: '#765bb8',
500: '#291b98',
950: '#000000',
},
}SCSS
$custom: #291b98; $custom-light: #765bb8; $custom-dark: #000000;
JSON
{
"hex": "#291b98",
"rgb": {
"r": 41,
"g": 27,
"b": 152
},
"hsl": {
"h": 246.72,
"s": 69.832,
"l": 35.098
},
"oklch": {
"l": 0.34795,
"c": 0.18762,
"h": 275.5
},
"luminance": 0.03522
}Semantic roles & 50–950 ramp
primary
#291B98
secondary
#B5C24D
accent
#ED3BD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980