#22117E#22117E
#22117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.1% C 0.166 H 276.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).
Color values
| HEX | #22117E |
|---|---|
| RGB | rgb(34, 17, 126) |
| HSL | hsl(249, 76%, 28%) |
| HSV | hsv(249, 87%, 49%) |
| CMYK | cmyk(73%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(16.73, 41.45, -57.11) |
| CIE-LCH | lch(16.73, 70.57, 305.97°) |
| OKLab | oklab(30.09% 0.0194 -0.165) |
| OKLCH | oklch(30.09% 0.166 276.7) |
| XYZ | xyz(4.6248, 2.2469, 19.9246) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.29
Midnight Blue
#191970
ΔE00 3.40
Darkblue
#00008B
ΔE00 3.46
Royal
#0C1793
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 3.54
Deep Blue
#040273
ΔE00 3.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22117E #6D7E11
analogous
#11367E #22117E #58117E
triadic
#22117E #7E2211 #117E22
tetradic
#22117E #7E1136 #6D7E11 #117E58
square
#22117E #7E1136 #6D7E11 #117E58
split-complementary
#22117E #7E5811 #367E11
monochromatic
#07041B #130A48 #22117E #3118B4 #4527E2
Accessibility & contrast
On white
14.49
#22117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#22117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22117E
14.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22117E | 1.00 | 14.49 | 1.45 | 14.49 |
| #FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #22117e; /* rgb */ color: rgb(34, 17, 126); /* oklch */ color: oklch(30.1% 0.166 276.7);
Tailwind
colors: {
custom: {
50: '#6e54a5',
500: '#22117e',
950: '#000000',
},
}SCSS
$custom: #22117e; $custom-light: #6e54a5; $custom-dark: #000000;
JSON
{
"hex": "#22117e",
"rgb": {
"r": 34,
"g": 17,
"b": 126
},
"hsl": {
"h": 249.358,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30088,
"c": 0.16615,
"h": 276.7
},
"luminance": 0.02247
}Semantic roles & 50–950 ramp
primary
#22117E
secondary
#A1B437
accent
#F335D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F