#22217C#22217C
#22217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.148 H 274.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #22217C |
|---|---|
| RGB | rgb(34, 33, 124) |
| HSL | hsl(241, 58%, 31%) |
| HSV | hsv(241, 73%, 49%) |
| CMYK | cmyk(72.6%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.57, 32.02, -51.15) |
| CIE-LCH | lch(19.57, 60.35, 302.05°) |
| OKLab | oklab(32.01% 0.0118 -0.1479) |
| OKLCH | oklch(32.01% 0.148 274.6) |
| XYZ | xyz(4.8404, 2.8826, 19.3662) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.59
Royal
#0C1793
ΔE00 4.44
Dark Royal Blue
#02066F
ΔE00 6.19
Deep Blue
#040273
ΔE00 6.63
Navy
#000080
ΔE00 6.68
Indigo (survey)
#380282
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22217C #7B7C21
analogous
#214D7C #22217C #4F217C
triadic
#22217C #7C2221 #217C22
tetradic
#22217C #7C214D #7B7C21 #217C4F
square
#22217C #7C214D #7B7C21 #217C4F
split-complementary
#22217C #7C4F21 #4D7C21
monochromatic
#07071B #15144C #22217C #2F2EAC #4A49CF
Accessibility & contrast
On white
13.32
#22217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#22217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22217C
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22217C | 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)
#00347F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #22217c; /* rgb */ color: rgb(34, 33, 124); /* oklch */ color: oklch(32.0% 0.148 274.6);
Tailwind
colors: {
custom: {
50: '#6c5da3',
500: '#22217c',
950: '#000000',
},
}SCSS
$custom: #22217c; $custom-light: #6c5da3; $custom-dark: #000000;
JSON
{
"hex": "#22217c",
"rgb": {
"r": 34,
"g": 33,
"b": 124
},
"hsl": {
"h": 240.659,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32011,
"c": 0.14834,
"h": 274.6
},
"luminance": 0.02883
}Semantic roles & 50–950 ramp
primary
#22217C
secondary
#AEAF4A
accent
#E147DF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F