#21187B#21187B
#21187B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.157 H 275.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #21187B |
|---|---|
| RGB | rgb(33, 24, 123) |
| HSL | hsl(245, 67%, 29%) |
| HSV | hsv(245, 80%, 48%) |
| CMYK | cmyk(73.2%, 80.5%, 0%, 51.8%) |
| CIE-LAB | lab(17.49, 36.90, -53.95) |
| CIE-LCH | lch(17.49, 65.36, 304.38°) |
| OKLab | oklab(30.49% 0.0158 -0.156) |
| OKLCH | oklch(30.49% 0.157 275.8) |
| XYZ | xyz(4.5278, 2.4062, 18.9609) |
| Luminance | 0.0241 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.13
Royal
#0C1793
ΔE00 3.71
Dark Royal Blue
#02066F
ΔE00 4.23
Deep Blue
#040273
ΔE00 4.51
Navy
#000080
ΔE00 4.56
Darkblue
#00008B
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21187B #727B18
analogous
#18417B #21187B #53187B
triadic
#21187B #7B2118 #187B21
tetradic
#21187B #7B1841 #727B18 #187B53
square
#21187B #7B1841 #727B18 #187B53
split-complementary
#21187B #7B5318 #417B18
monochromatic
#07051A #130E48 #21187B #2F22AE #4436D8
Accessibility & contrast
On white
14.18
#21187B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#21187B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21187B
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21187B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21187B | 1.00 | 14.18 | 1.48 | 14.18 |
| #FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21187b; /* rgb */ color: rgb(33, 24, 123); /* oklch */ color: oklch(30.5% 0.157 275.8);
Tailwind
colors: {
custom: {
50: '#6c57a2',
500: '#21187b',
950: '#000000',
},
}SCSS
$custom: #21187b; $custom-light: #6c57a2; $custom-dark: #000000;
JSON
{
"hex": "#21187b",
"rgb": {
"r": 33,
"g": 24,
"b": 123
},
"hsl": {
"h": 245.455,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.30487,
"c": 0.15675,
"h": 275.8
},
"luminance": 0.02407
}Semantic roles & 50–950 ramp
primary
#21187B
secondary
#A5B03F
accent
#EA3EDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F