#21178A#21178A
#21178A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.176 H 274.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #21178A |
|---|---|
| RGB | rgb(33, 23, 138) |
| HSL | hsl(245, 71%, 32%) |
| HSV | hsv(245, 83%, 54%) |
| CMYK | cmyk(76.1%, 83.3%, 0%, 45.9%) |
| CIE-LAB | lab(19.10, 42.33, -60.77) |
| CIE-LCH | lch(19.10, 74.06, 304.86°) |
| OKLab | oklab(32.13% 0.0122 -0.1758) |
| OKLCH | oklch(32.13% 0.176 274) |
| XYZ | xyz(5.5195, 2.7705, 24.2837) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.75
Darkblue
#00008B
ΔE00 3.80
Cobalt Blue
#030AA7
ΔE00 4.24
Midnight Blue
#191970
ΔE00 4.32
Navy
#000080
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21178A #808A17
analogous
#17478A #21178A #5B178A
triadic
#21178A #8A2117 #178A21
tetradic
#21178A #8A1747 #808A17 #178A5B
square
#21178A #8A1747 #808A17 #178A5B
split-complementary
#21178A #8A5B17 #478A17
monochromatic
#080621 #140E56 #21178A #2E20BE #4B3DDF
Accessibility & contrast
On white
13.51
#21178A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#21178A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21178A
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21178A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21178A | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #21178a; /* rgb */ color: rgb(33, 23, 138); /* oklch */ color: oklch(32.1% 0.176 274.0);
Tailwind
colors: {
custom: {
50: '#7058ad',
500: '#21178a',
950: '#000000',
},
}SCSS
$custom: #21178a; $custom-light: #7058ad; $custom-dark: #000000;
JSON
{
"hex": "#21178a",
"rgb": {
"r": 33,
"g": 23,
"b": 138
},
"hsl": {
"h": 245.217,
"s": 71.429,
"l": 31.569
},
"oklch": {
"l": 0.32132,
"c": 0.17618,
"h": 274
},
"luminance": 0.02771
}Semantic roles & 50–950 ramp
primary
#21178A
secondary
#B3BE3F
accent
#EE3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F