#21157E#21157E
#21157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 275.7°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).
Color values
| HEX | #21157E |
|---|---|
| RGB | rgb(33, 21, 126) |
| HSL | hsl(247, 71%, 29%) |
| HSV | hsv(247, 83%, 49%) |
| CMYK | cmyk(73.8%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(17.30, 39.47, -56.17) |
| CIE-LCH | lch(17.30, 68.65, 305.09°) |
| OKLab | oklab(30.46% 0.0163 -0.1624) |
| OKLCH | oklch(30.46% 0.163 275.7) |
| XYZ | xyz(4.6600, 2.3656, 19.9456) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Royal
#0C1793
ΔE00 3.28
Navy
#000080
ΔE00 3.87
Dark Royal Blue
#02066F
ΔE00 3.98
Darkblue
#00008B
ΔE00 3.99
Deep Blue
#040273
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21157E #727E15
analogous
#153E7E #21157E #56157E
triadic
#21157E #7E2115 #157E21
tetradic
#21157E #7E153E #727E15 #157E56
square
#21157E #7E153E #727E15 #157E56
split-complementary
#21157E #7E5615 #3E7E15
monochromatic
#07041A #130C4A #21157E #2F1EB2 #4431DD
Accessibility & contrast
On white
14.25
#21157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#21157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21157E
14.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21157E | 1.00 | 14.25 | 1.47 | 14.25 |
| #FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21157e; /* rgb */ color: rgb(33, 21, 126); /* oklch */ color: oklch(30.5% 0.163 275.7);
Tailwind
colors: {
custom: {
50: '#6d56a5',
500: '#21157e',
950: '#000000',
},
}SCSS
$custom: #21157e; $custom-light: #6d56a5; $custom-dark: #000000;
JSON
{
"hex": "#21157e",
"rgb": {
"r": 33,
"g": 21,
"b": 126
},
"hsl": {
"h": 246.857,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.30459,
"c": 0.16321,
"h": 275.7
},
"luminance": 0.02366
}Semantic roles & 50–950 ramp
primary
#21157E
secondary
#A5B33C
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F