#21177F#21177F
#21177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.163 H 275.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).
Color values
| HEX | #21177F |
|---|---|
| RGB | rgb(33, 23, 127) |
| HSL | hsl(246, 69%, 29%) |
| HSV | hsv(246, 82%, 50%) |
| CMYK | cmyk(74%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.77, 38.77, -56.03) |
| CIE-LCH | lch(17.77, 68.13, 304.68°) |
| OKLab | oklab(30.82% 0.0152 -0.162) |
| OKLCH | oklch(30.82% 0.163 275.3) |
| XYZ | xyz(4.7631, 2.4680, 20.2999) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.78
Royal
#0C1793
ΔE00 3.12
Navy
#000080
ΔE00 4.22
Darkblue
#00008B
ΔE00 4.26
Dark Royal Blue
#02066F
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21177F #757F17
analogous
#17417F #21177F #55177F
triadic
#21177F #7F2117 #177F21
tetradic
#21177F #7F1741 #757F17 #177F55
square
#21177F #7F1741 #757F17 #177F55
split-complementary
#21177F #7F5517 #417F17
monochromatic
#07051A #140E4B #21177F #2E20B3 #4636DB
Accessibility & contrast
On white
14.06
#21177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21177F
14.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21177F | 1.00 | 14.06 | 1.49 | 14.06 |
| #FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #21177f; /* rgb */ color: rgb(33, 23, 127); /* oklch */ color: oklch(30.8% 0.163 275.3);
Tailwind
colors: {
custom: {
50: '#6d57a5',
500: '#21177f',
950: '#000000',
},
}SCSS
$custom: #21177f; $custom-light: #6d57a5; $custom-dark: #000000;
JSON
{
"hex": "#21177f",
"rgb": {
"r": 33,
"g": 23,
"b": 127
},
"hsl": {
"h": 245.769,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30823,
"c": 0.1627,
"h": 275.3
},
"luminance": 0.02468
}Semantic roles & 50–950 ramp
primary
#21177F
secondary
#A8B43E
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F