#22179E#22179E
#22179E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.199 H 272.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).
Color values
| HEX | #22179E |
|---|---|
| RGB | rgb(34, 23, 158) |
| HSL | hsl(245, 75%, 35%) |
| HSV | hsv(245, 85%, 62%) |
| CMYK | cmyk(78.5%, 85.4%, 0%, 38%) |
| CIE-LAB | lab(21.66, 48.62, -68.91) |
| CIE-LCH | lch(21.66, 84.33, 305.21°) |
| OKLab | oklab(34.63% 0.008 -0.1993) |
| OKLCH | oklch(34.63% 0.199 272.3) |
| XYZ | xyz(7.1356, 3.4207, 32.6253) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.20
Cobalt Blue
#030AA7
ΔE00 2.25
Royal Blue (survey)
#0504AA
ΔE00 2.74
Ultramarine
#2000B1
ΔE00 3.21
Indigo Blue
#3A18B1
ΔE00 3.65
Darkblue
#00008B
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22179E #939E17
analogous
#174F9E #22179E #65179E
triadic
#22179E #9E2217 #179E22
tetradic
#22179E #9E174F #939E17 #179E65
square
#22179E #9E174F #939E17 #179E65
split-complementary
#22179E #9E6517 #4F9E17
monochromatic
#0B0733 #170F69 #22179E #2D1FD3 #574BE5
Accessibility & contrast
On white
12.47
#22179E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#22179E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22179E
12.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22179E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22179E | 1.00 | 12.47 | 1.68 | 12.47 |
| #FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #22179e; /* rgb */ color: rgb(34, 23, 158); /* oklch */ color: oklch(34.6% 0.199 272.3);
Tailwind
colors: {
custom: {
50: '#755abc',
500: '#22179e',
950: '#000000',
},
}SCSS
$custom: #22179e; $custom-light: #755abc; $custom-dark: #000000;
JSON
{
"hex": "#22179e",
"rgb": {
"r": 34,
"g": 23,
"b": 158
},
"hsl": {
"h": 244.889,
"s": 74.586,
"l": 35.49
},
"oklch": {
"l": 0.34628,
"c": 0.19948,
"h": 272.3
},
"luminance": 0.03421
}Semantic roles & 50–950 ramp
primary
#22179E
secondary
#BCC64A
accent
#F137E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981