#22227E#22227E
#22227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.150 H 274.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #22227E |
|---|---|
| RGB | rgb(34, 34, 126) |
| HSL | hsl(240, 58%, 31%) |
| HSV | hsv(240, 73%, 49%) |
| CMYK | cmyk(73%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(20.00, 32.11, -51.71) |
| CIE-LCH | lch(20.00, 60.87, 301.84°) |
| OKLab | oklab(32.39% 0.0108 -0.1495) |
| OKLCH | oklch(32.39% 0.15 274.1) |
| XYZ | xyz(4.9964, 2.9900, 20.0484) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.95
Royal
#0C1793
ΔE00 4.34
Dark Royal Blue
#02066F
ΔE00 6.47
Darkblue
#00008B
ΔE00 6.81
Indigo (survey)
#380282
ΔE00 6.85
Navy
#000080
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22227E #7E7E22
analogous
#22507E #22227E #50227E
triadic
#22227E #7E2222 #227E22
tetradic
#22227E #7E2250 #7E7E22 #227E50
square
#22227E #7E2250 #7E7E22 #227E50
split-complementary
#22227E #7E5022 #507E22
monochromatic
#08081E #15154E #22227E #2F2FAE #4C4CCF
Accessibility & contrast
On white
13.14
#22227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#22227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22227E
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22227E | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #22227e; /* rgb */ color: rgb(34, 34, 126); /* oklch */ color: oklch(32.4% 0.150 274.1);
Tailwind
colors: {
custom: {
50: '#6c5ea4',
500: '#22227e',
950: '#000000',
},
}SCSS
$custom: #22227e; $custom-light: #6c5ea4; $custom-dark: #000000;
JSON
{
"hex": "#22227e",
"rgb": {
"r": 34,
"g": 34,
"b": 126
},
"hsl": {
"h": 240,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.32387,
"c": 0.14987,
"h": 274.1
},
"luminance": 0.0299
}Semantic roles & 50–950 ramp
primary
#22227E
secondary
#B1B14B
accent
#E147E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F