#21177C#21177C
#21177C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.159 H 275.8°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #21177C |
|---|---|
| RGB | rgb(33, 23, 124) |
| HSL | hsl(246, 69%, 29%) |
| HSV | hsv(246, 81%, 49%) |
| CMYK | cmyk(73.4%, 81.5%, 0%, 51.4%) |
| CIE-LAB | lab(17.42, 37.78, -54.70) |
| CIE-LCH | lch(17.42, 66.48, 304.63°) |
| OKLab | oklab(30.47% 0.016 -0.1582) |
| OKLCH | oklch(30.47% 0.159 275.8) |
| XYZ | xyz(4.5705, 2.3909, 19.2855) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.37
Royal
#0C1793
ΔE00 3.55
Dark Royal Blue
#02066F
ΔE00 4.12
Navy
#000080
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.34
Darkblue
#00008B
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21177C #727C17
analogous
#17407C #21177C #54177C
triadic
#21177C #7C2117 #177C21
tetradic
#21177C #7C1740 #727C17 #177C54
square
#21177C #7C1740 #727C17 #177C54
split-complementary
#21177C #7C5417 #407C17
monochromatic
#07051A #130D48 #21177C #2F21B0 #4434D9
Accessibility & contrast
On white
14.21
#21177C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#21177C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21177C
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21177C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21177C | 1.00 | 14.21 | 1.48 | 14.21 |
| #FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21177c; /* rgb */ color: rgb(33, 23, 124); /* oklch */ color: oklch(30.5% 0.159 275.8);
Tailwind
colors: {
custom: {
50: '#6c57a3',
500: '#21177c',
950: '#000000',
},
}SCSS
$custom: #21177c; $custom-light: #6c57a3; $custom-dark: #000000;
JSON
{
"hex": "#21177c",
"rgb": {
"r": 33,
"g": 23,
"b": 124
},
"hsl": {
"h": 245.941,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.30471,
"c": 0.15895,
"h": 275.8
},
"luminance": 0.02391
}Semantic roles & 50–950 ramp
primary
#21177C
secondary
#A5B13E
accent
#EC3CDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F