#21178C#21178C
#21178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.179 H 273.7°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #21178C |
|---|---|
| RGB | rgb(33, 23, 140) |
| HSL | hsl(245, 72%, 32%) |
| HSV | hsv(245, 84%, 55%) |
| CMYK | cmyk(76.4%, 83.6%, 0%, 45.1%) |
| CIE-LAB | lab(19.35, 42.96, -61.61) |
| CIE-LCH | lch(19.35, 75.12, 304.89°) |
| OKLab | oklab(32.37% 0.0116 -0.1782) |
| OKLCH | oklch(32.37% 0.179 273.7) |
| XYZ | xyz(5.6656, 2.8290, 25.0533) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.57
Darkblue
#00008B
ΔE00 3.80
Cobalt Blue
#030AA7
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.45
Navy
#000080
ΔE00 4.47
Royal Blue (survey)
#0504AA
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21178C #828C17
analogous
#17488C #21178C #5C178C
triadic
#21178C #8C2117 #178C21
tetradic
#21178C #8C1748 #828C17 #178C5C
square
#21178C #8C1748 #828C17 #178C5C
split-complementary
#21178C #8C5C17 #488C17
monochromatic
#080623 #150E57 #21178C #2D20C1 #4C3EDF
Accessibility & contrast
On white
13.41
#21178C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#21178C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21178C
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21178C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21178C | 1.00 | 13.41 | 1.57 | 13.41 |
| #FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21178c; /* rgb */ color: rgb(33, 23, 140); /* oklch */ color: oklch(32.4% 0.179 273.7);
Tailwind
colors: {
custom: {
50: '#7058af',
500: '#21178c',
950: '#000000',
},
}SCSS
$custom: #21178c; $custom-light: #7058af; $custom-dark: #000000;
JSON
{
"hex": "#21178c",
"rgb": {
"r": 33,
"g": 23,
"b": 140
},
"hsl": {
"h": 245.128,
"s": 71.779,
"l": 31.961
},
"oklch": {
"l": 0.32373,
"c": 0.17859,
"h": 273.7
},
"luminance": 0.0283
}Semantic roles & 50–950 ramp
primary
#21178C
secondary
#B4BF3F
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880