#22158F#22158F
#22158F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 274.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #22158F |
|---|---|
| RGB | rgb(34, 21, 143) |
| HSL | hsl(246, 74%, 32%) |
| HSV | hsv(246, 85%, 56%) |
| CMYK | cmyk(76.2%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.47, 44.91, -63.28) |
| CIE-LCH | lch(19.47, 77.59, 305.36°) |
| OKLab | oklab(32.58% 0.0128 -0.183) |
| OKLCH | oklch(32.58% 0.183 274) |
| XYZ | xyz(5.8841, 2.8590, 26.2230) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.56
Cobalt Blue
#030AA7
ΔE00 3.48
Darkblue
#00008B
ΔE00 3.57
Royal Blue (survey)
#0504AA
ΔE00 3.96
Indigo (survey)
#380282
ΔE00 4.25
Navy
#000080
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22158F #828F15
analogous
#15458F #22158F #5F158F
triadic
#22158F #8F2215 #158F22
tetradic
#22158F #8F1545 #828F15 #158F5F
square
#22158F #8F1545 #828F15 #158F5F
split-complementary
#22158F #8F5F15 #458F15
monochromatic
#090524 #150D5A #22158F #2F1DC4 #4E3CE2
Accessibility & contrast
On white
13.36
#22158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#22158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22158F
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22158F | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #22158f; /* rgb */ color: rgb(34, 21, 143); /* oklch */ color: oklch(32.6% 0.183 274.0);
Tailwind
colors: {
custom: {
50: '#7157b1',
500: '#22158f',
950: '#000000',
},
}SCSS
$custom: #22158f; $custom-light: #7157b1; $custom-dark: #000000;
JSON
{
"hex": "#22158f",
"rgb": {
"r": 34,
"g": 21,
"b": 143
},
"hsl": {
"h": 246.393,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.32584,
"c": 0.18341,
"h": 274
},
"luminance": 0.0286
}Semantic roles & 50–950 ramp
primary
#22158F
secondary
#B4C23E
accent
#F137DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880