#22217E#22217E
#22217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 274.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #22217E |
|---|---|
| RGB | rgb(34, 33, 126) |
| HSL | hsl(241, 58%, 31%) |
| HSV | hsv(241, 74%, 49%) |
| CMYK | cmyk(73%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.78, 32.74, -52.08) |
| CIE-LCH | lch(19.78, 61.52, 302.16°) |
| OKLab | oklab(32.22% 0.0114 -0.1506) |
| OKLCH | oklch(32.22% 0.151 274.3) |
| XYZ | xyz(4.9682, 2.9337, 20.0390) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.79
Royal
#0C1793
ΔE00 4.16
Dark Royal Blue
#02066F
ΔE00 6.23
Darkblue
#00008B
ΔE00 6.55
Navy
#000080
ΔE00 6.58
Indigo (survey)
#380282
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22217E #7D7E21
analogous
#214E7E #22217E #50217E
triadic
#22217E #7E2221 #217E22
tetradic
#22217E #7E214E #7D7E21 #217E50
square
#22217E #7E214E #7D7E21 #217E50
split-complementary
#22217E #7E5021 #4E7E21
monochromatic
#08081D #15144E #22217E #2F2EAE #4B4AD0
Accessibility & contrast
On white
13.23
#22217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#22217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22217E
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22217E | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #22217e; /* rgb */ color: rgb(34, 33, 126); /* oklch */ color: oklch(32.2% 0.151 274.3);
Tailwind
colors: {
custom: {
50: '#6c5da4',
500: '#22217e',
950: '#000000',
},
}SCSS
$custom: #22217e; $custom-light: #6c5da4; $custom-dark: #000000;
JSON
{
"hex": "#22217e",
"rgb": {
"r": 34,
"g": 33,
"b": 126
},
"hsl": {
"h": 240.645,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.32224,
"c": 0.151,
"h": 274.3
},
"luminance": 0.02934
}Semantic roles & 50–950 ramp
primary
#22217E
secondary
#B0B14A
accent
#E246E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F