#22147E#22147E
#22147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.164 H 276.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #22147E |
|---|---|
| RGB | rgb(34, 20, 126) |
| HSL | hsl(248, 73%, 29%) |
| HSV | hsv(248, 84%, 49%) |
| CMYK | cmyk(73%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(17.21, 40.05, -56.32) |
| CIE-LCH | lch(17.21, 69.11, 305.42°) |
| OKLab | oklab(30.42% 0.0182 -0.1628) |
| OKLCH | oklch(30.42% 0.164 276.4) |
| XYZ | xyz(4.6745, 2.3463, 19.9412) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.02
Royal
#0C1793
ΔE00 3.35
Navy
#000080
ΔE00 3.74
Darkblue
#00008B
ΔE00 3.87
Dark Royal Blue
#02066F
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22147E #707E14
analogous
#143B7E #22147E #57147E
triadic
#22147E #7E2214 #147E22
tetradic
#22147E #7E143B #707E14 #147E57
square
#22147E #7E143B #707E14 #147E57
split-complementary
#22147E #7E5714 #3B7E14
monochromatic
#07041A #140C49 #22147E #301CB3 #462EDE
Accessibility & contrast
On white
14.29
#22147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#22147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22147E
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22147E | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #22147e; /* rgb */ color: rgb(34, 20, 126); /* oklch */ color: oklch(30.4% 0.164 276.4);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#22147e',
950: '#000000',
},
}SCSS
$custom: #22147e; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#22147e",
"rgb": {
"r": 34,
"g": 20,
"b": 126
},
"hsl": {
"h": 247.925,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.30416,
"c": 0.16379,
"h": 276.4
},
"luminance": 0.02347
}Semantic roles & 50–950 ramp
primary
#22147E
secondary
#A3B33A
accent
#EF38D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F