#22118C#22118C
#22118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.183 H 274.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #22118C |
|---|---|
| RGB | rgb(34, 17, 140) |
| HSL | hsl(248, 78%, 31%) |
| HSV | hsv(248, 88%, 55%) |
| CMYK | cmyk(75.7%, 87.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.51, 45.70, -62.99) |
| CIE-LCH | lch(18.51, 77.83, 305.96°) |
| OKLab | oklab(31.82% 0.0148 -0.1821) |
| OKLCH | oklch(31.82% 0.183 274.6) |
| XYZ | xyz(5.5922, 2.6339, 25.0195) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.05
Darkblue
#00008B
ΔE00 2.95
Indigo (survey)
#380282
ΔE00 3.68
Cobalt Blue
#030AA7
ΔE00 3.70
Navy
#000080
ΔE00 3.71
Royal Blue (survey)
#0504AA
ΔE00 4.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22118C #7B8C11
analogous
#113D8C #22118C #5F118C
triadic
#22118C #8C2211 #118C22
tetradic
#22118C #8C113D #7B8C11 #118C5F
square
#22118C #8C113D #7B8C11 #118C5F
split-complementary
#22118C #8C5F11 #3D8C11
monochromatic
#07041F #150A55 #22118C #2F18C3 #4A31E6
Accessibility & contrast
On white
13.75
#22118C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#22118C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22118C
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22118C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22118C | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #22118c; /* rgb */ color: rgb(34, 17, 140); /* oklch */ color: oklch(31.8% 0.183 274.6);
Tailwind
colors: {
custom: {
50: '#7155af',
500: '#22118c',
950: '#000000',
},
}SCSS
$custom: #22118c; $custom-light: #7155af; $custom-dark: #000000;
JSON
{
"hex": "#22118c",
"rgb": {
"r": 34,
"g": 17,
"b": 140
},
"hsl": {
"h": 248.293,
"s": 78.344,
"l": 30.784
},
"oklch": {
"l": 0.31819,
"c": 0.18267,
"h": 274.6
},
"luminance": 0.02634
}Semantic roles & 50–950 ramp
primary
#22118C
secondary
#AEC138
accent
#F533DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880