#22187F#22187F
#22187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.162 H 275.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #22187F |
|---|---|
| RGB | rgb(34, 24, 127) |
| HSL | hsl(246, 68%, 30%) |
| HSV | hsv(246, 81%, 50%) |
| CMYK | cmyk(73.2%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(18.03, 38.33, -55.59) |
| CIE-LCH | lch(18.03, 67.53, 304.58°) |
| OKLab | oklab(31.02% 0.0161 -0.1607) |
| OKLCH | oklch(31.02% 0.162 275.7) |
| XYZ | xyz(4.8158, 2.5252, 20.3082) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.17
Navy
#000080
ΔE00 4.45
Darkblue
#00008B
ΔE00 4.47
Dark Royal Blue
#02066F
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22187F #757F18
analogous
#18427F #22187F #56187F
triadic
#22187F #7F2218 #187F22
tetradic
#22187F #7F1842 #757F18 #187F56
square
#22187F #7F1842 #757F18 #187F56
split-complementary
#22187F #7F5618 #427F18
monochromatic
#07051A #140E4C #22187F #3022B2 #4838D9
Accessibility & contrast
On white
13.95
#22187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#22187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22187F
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22187F | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #22187f; /* rgb */ color: rgb(34, 24, 127); /* oklch */ color: oklch(31.0% 0.162 275.7);
Tailwind
colors: {
custom: {
50: '#6d58a5',
500: '#22187f',
950: '#000000',
},
}SCSS
$custom: #22187f; $custom-light: #6d58a5; $custom-dark: #000000;
JSON
{
"hex": "#22187f",
"rgb": {
"r": 34,
"g": 24,
"b": 127
},
"hsl": {
"h": 245.825,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.31024,
"c": 0.16154,
"h": 275.7
},
"luminance": 0.02526
}Semantic roles & 50–950 ramp
primary
#22187F
secondary
#A8B33F
accent
#EB3DDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F