#22197F#22197F
#22197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.161 H 275.6°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).
Color values
| HEX | #22197F |
|---|---|
| RGB | rgb(34, 25, 127) |
| HSL | hsl(245, 67%, 30%) |
| HSV | hsv(245, 80%, 50%) |
| CMYK | cmyk(73.2%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.22, 37.79, -55.28) |
| CIE-LCH | lch(18.22, 66.96, 304.35°) |
| OKLab | oklab(31.16% 0.0156 -0.1598) |
| OKLCH | oklch(31.16% 0.161 275.6) |
| XYZ | xyz(4.8368, 2.5672, 20.3152) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.67
Royal
#0C1793
ΔE00 3.19
Navy
#000080
ΔE00 4.65
Darkblue
#00008B
ΔE00 4.66
Dark Royal Blue
#02066F
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 4.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22197F #767F19
analogous
#19437F #22197F #55197F
triadic
#22197F #7F2219 #197F22
tetradic
#22197F #7F1943 #767F19 #197F55
square
#22197F #7F1943 #767F19 #197F55
split-complementary
#22197F #7F5519 #437F19
monochromatic
#07051A #140F4C #22197F #3023B2 #483AD8
Accessibility & contrast
On white
13.87
#22197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#22197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22197F
13.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22197F | 1.00 | 13.87 | 1.51 | 13.87 |
| #FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #22197f; /* rgb */ color: rgb(34, 25, 127); /* oklch */ color: oklch(31.2% 0.161 275.6);
Tailwind
colors: {
custom: {
50: '#6d58a5',
500: '#22197f',
950: '#000000',
},
}SCSS
$custom: #22197f; $custom-light: #6d58a5; $custom-dark: #000000;
JSON
{
"hex": "#22197f",
"rgb": {
"r": 34,
"g": 25,
"b": 127
},
"hsl": {
"h": 245.294,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.31155,
"c": 0.1606,
"h": 275.6
},
"luminance": 0.02568
}Semantic roles & 50–950 ramp
primary
#22197F
secondary
#A9B341
accent
#EA3EDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F