#22197E#22197E
#22197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 275.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).
Color values
| HEX | #22197E |
|---|---|
| RGB | rgb(34, 25, 126) |
| HSL | hsl(245, 67%, 30%) |
| HSV | hsv(245, 80%, 49%) |
| CMYK | cmyk(73%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(18.10, 37.46, -54.84) |
| CIE-LCH | lch(18.10, 66.41, 304.33°) |
| OKLab | oklab(31.04% 0.0159 -0.1585) |
| OKLCH | oklch(31.04% 0.159 275.7) |
| XYZ | xyz(4.7720, 2.5412, 19.9736) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.52
Royal
#0C1793
ΔE00 3.34
Dark Royal Blue
#02066F
ΔE00 4.60
Navy
#000080
ΔE00 4.68
Darkblue
#00008B
ΔE00 4.73
Indigo (survey)
#380282
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22197E #757E19
analogous
#19427E #22197E #55197E
triadic
#22197E #7E2219 #197E22
tetradic
#22197E #7E1942 #757E19 #197E55
square
#22197E #7E1942 #757E19 #197E55
split-complementary
#22197E #7E5519 #427E19
monochromatic
#07051A #140F4B #22197E #3023B1 #483AD8
Accessibility & contrast
On white
13.92
#22197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#22197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22197E
13.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22197E | 1.00 | 13.92 | 1.51 | 13.92 |
| #FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #22197e; /* rgb */ color: rgb(34, 25, 126); /* oklch */ color: oklch(31.0% 0.159 275.7);
Tailwind
colors: {
custom: {
50: '#6d58a5',
500: '#22197e',
950: '#000000',
},
}SCSS
$custom: #22197e; $custom-light: #6d58a5; $custom-dark: #000000;
JSON
{
"hex": "#22197e",
"rgb": {
"r": 34,
"g": 25,
"b": 126
},
"hsl": {
"h": 245.347,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.3104,
"c": 0.15935,
"h": 275.7
},
"luminance": 0.02542
}Semantic roles & 50–950 ramp
primary
#22197E
secondary
#A8B241
accent
#EA3EDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F