#22157C#22157C
#22157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.160 H 276.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).
Color values
| HEX | #22157C |
|---|---|
| RGB | rgb(34, 21, 124) |
| HSL | hsl(248, 71%, 28%) |
| HSV | hsv(248, 83%, 49%) |
| CMYK | cmyk(72.6%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(17.14, 38.91, -55.16) |
| CIE-LCH | lch(17.14, 67.51, 305.20°) |
| OKLab | oklab(30.3% 0.0183 -0.1594) |
| OKLCH | oklch(30.3% 0.16 276.6) |
| XYZ | xyz(4.5648, 2.3312, 19.2743) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Royal
#0C1793
ΔE00 3.60
Dark Royal Blue
#02066F
ΔE00 3.89
Navy
#000080
ΔE00 3.97
Deep Blue
#040273
ΔE00 4.03
Indigo (survey)
#380282
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22157C #6F7C15
analogous
#153B7C #22157C #55157C
triadic
#22157C #7C2215 #157C22
tetradic
#22157C #7C153B #6F7C15 #157C55
square
#22157C #7C153B #6F7C15 #157C55
split-complementary
#22157C #7C5515 #3B7C15
monochromatic
#07041A #140C48 #22157C #301EB0 #4530DC
Accessibility & contrast
On white
14.32
#22157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#22157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22157C
14.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22157C | 1.00 | 14.32 | 1.47 | 14.32 |
| #FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #22157c; /* rgb */ color: rgb(34, 21, 124); /* oklch */ color: oklch(30.3% 0.160 276.6);
Tailwind
colors: {
custom: {
50: '#6d56a3',
500: '#22157c',
950: '#000000',
},
}SCSS
$custom: #22157c; $custom-light: #6d56a3; $custom-dark: #000000;
JSON
{
"hex": "#22157c",
"rgb": {
"r": 34,
"g": 21,
"b": 124
},
"hsl": {
"h": 247.573,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.30296,
"c": 0.16048,
"h": 276.6
},
"luminance": 0.02332
}Semantic roles & 50–950 ramp
primary
#22157C
secondary
#A2B13C
accent
#EE3AD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F