#21177E#21177E
#21177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.161 H 275.5°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #21177E |
|---|---|
| RGB | rgb(33, 23, 126) |
| HSL | hsl(246, 69%, 29%) |
| HSV | hsv(246, 82%, 49%) |
| CMYK | cmyk(73.8%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.65, 38.44, -55.59) |
| CIE-LCH | lch(17.65, 67.58, 304.66°) |
| OKLab | oklab(30.71% 0.0154 -0.1607) |
| OKLCH | oklch(30.71% 0.161 275.5) |
| XYZ | xyz(4.6983, 2.4420, 19.9584) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.64
Royal
#0C1793
ΔE00 3.26
Navy
#000080
ΔE00 4.24
Dark Royal Blue
#02066F
ΔE00 4.25
Darkblue
#00008B
ΔE00 4.33
Deep Blue
#040273
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21177E #747E17
analogous
#17417E #21177E #55177E
triadic
#21177E #7E2117 #177E21
tetradic
#21177E #7E1741 #747E17 #177E55
square
#21177E #7E1741 #747E17 #177E55
split-complementary
#21177E #7E5517 #417E17
monochromatic
#07051A #130E4A #21177E #2F20B2 #4535DA
Accessibility & contrast
On white
14.11
#21177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21177E
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21177E | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21177e; /* rgb */ color: rgb(33, 23, 126); /* oklch */ color: oklch(30.7% 0.161 275.5);
Tailwind
colors: {
custom: {
50: '#6d57a5',
500: '#21177e',
950: '#000000',
},
}SCSS
$custom: #21177e; $custom-light: #6d57a5; $custom-dark: #000000;
JSON
{
"hex": "#21177e",
"rgb": {
"r": 33,
"g": 23,
"b": 126
},
"hsl": {
"h": 245.825,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.30706,
"c": 0.16146,
"h": 275.5
},
"luminance": 0.02442
}Semantic roles & 50–950 ramp
primary
#21177E
secondary
#A7B33E
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F