#21157B#21157B
#21157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.160 H 276.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #21157B |
|---|---|
| RGB | rgb(33, 21, 123) |
| HSL | hsl(247, 71%, 28%) |
| HSV | hsv(247, 83%, 48%) |
| CMYK | cmyk(73.2%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(16.94, 38.50, -54.86) |
| CIE-LCH | lch(16.94, 67.02, 305.06°) |
| OKLab | oklab(30.1% 0.0172 -0.1586) |
| OKLCH | oklch(30.1% 0.16 276.2) |
| XYZ | xyz(4.4693, 2.2893, 18.9414) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.49
Royal
#0C1793
ΔE00 3.71
Dark Royal Blue
#02066F
ΔE00 3.77
Deep Blue
#040273
ΔE00 3.96
Navy
#000080
ΔE00 3.97
Darkblue
#00008B
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21157B #6F7B15
analogous
#153C7B #21157B #54157B
triadic
#21157B #7B2115 #157B21
tetradic
#21157B #7B153C #6F7B15 #157B54
square
#21157B #7B153C #6F7B15 #157B54
split-complementary
#21157B #7B5415 #3C7B15
monochromatic
#07041A #130C47 #21157B #2F1EAF #432FDB
Accessibility & contrast
On white
14.40
#21157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21157B
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21157B | 1.00 | 14.40 | 1.46 | 14.40 |
| #FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21157b; /* rgb */ color: rgb(33, 21, 123); /* oklch */ color: oklch(30.1% 0.160 276.2);
Tailwind
colors: {
custom: {
50: '#6c56a2',
500: '#21157b',
950: '#000000',
},
}SCSS
$custom: #21157b; $custom-light: #6c56a2; $custom-dark: #000000;
JSON
{
"hex": "#21157b",
"rgb": {
"r": 33,
"g": 21,
"b": 123
},
"hsl": {
"h": 247.059,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.30102,
"c": 0.1595,
"h": 276.2
},
"luminance": 0.0229
}Semantic roles & 50–950 ramp
primary
#21157B
secondary
#A3B03B
accent
#EE3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F