#21187C#21187C
#21187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.158 H 275.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #21187C |
|---|---|
| RGB | rgb(33, 24, 124) |
| HSL | hsl(245, 68%, 29%) |
| HSV | hsv(245, 81%, 49%) |
| CMYK | cmyk(73.4%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(17.61, 37.24, -54.39) |
| CIE-LCH | lch(17.61, 65.92, 304.40°) |
| OKLab | oklab(30.6% 0.0155 -0.1573) |
| OKLCH | oklch(30.6% 0.158 275.6) |
| XYZ | xyz(4.5907, 2.4314, 19.2922) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.27
Royal
#0C1793
ΔE00 3.56
Dark Royal Blue
#02066F
ΔE00 4.28
Navy
#000080
ΔE00 4.51
Deep Blue
#040273
ΔE00 4.53
Darkblue
#00008B
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21187C #737C18
analogous
#18417C #21187C #53187C
triadic
#21187C #7C2118 #187C21
tetradic
#21187C #7C1841 #737C18 #187C53
square
#21187C #7C1841 #737C18 #187C53
split-complementary
#21187C #7C5318 #417C18
monochromatic
#07051A #130E49 #21187C #2F22AF #4536D8
Accessibility & contrast
On white
14.13
#21187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21187C
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21187C | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21187c; /* rgb */ color: rgb(33, 24, 124); /* oklch */ color: oklch(30.6% 0.158 275.6);
Tailwind
colors: {
custom: {
50: '#6c57a3',
500: '#21187c',
950: '#000000',
},
}SCSS
$custom: #21187c; $custom-light: #6c57a3; $custom-dark: #000000;
JSON
{
"hex": "#21187c",
"rgb": {
"r": 33,
"g": 24,
"b": 124
},
"hsl": {
"h": 245.4,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.30602,
"c": 0.15802,
"h": 275.6
},
"luminance": 0.02432
}Semantic roles & 50–950 ramp
primary
#21187C
secondary
#A6B13F
accent
#EA3DDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F