#21177B#21177B
#21177B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 275.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).
Color values
| HEX | #21177B |
|---|---|
| RGB | rgb(33, 23, 123) |
| HSL | hsl(246, 68%, 29%) |
| HSV | hsv(246, 81%, 48%) |
| CMYK | cmyk(73.2%, 81.3%, 0%, 51.8%) |
| CIE-LAB | lab(17.30, 37.45, -54.26) |
| CIE-LCH | lch(17.30, 65.93, 304.61°) |
| OKLab | oklab(30.35% 0.0162 -0.1569) |
| OKLCH | oklch(30.35% 0.158 275.9) |
| XYZ | xyz(4.5076, 2.3658, 18.9541) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.24
Royal
#0C1793
ΔE00 3.70
Dark Royal Blue
#02066F
ΔE00 4.07
Deep Blue
#040273
ΔE00 4.32
Navy
#000080
ΔE00 4.35
Darkblue
#00008B
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21177B #717B17
analogous
#173F7B #21177B #53177B
triadic
#21177B #7B2117 #177B21
tetradic
#21177B #7B173F #717B17 #177B53
square
#21177B #7B173F #717B17 #177B53
split-complementary
#21177B #7B5317 #3F7B17
monochromatic
#07051A #130D47 #21177B #2F21AF #4433D9
Accessibility & contrast
On white
14.25
#21177B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#21177B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21177B
14.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21177B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21177B | 1.00 | 14.25 | 1.47 | 14.25 |
| #FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21177b; /* rgb */ color: rgb(33, 23, 123); /* oklch */ color: oklch(30.4% 0.158 275.9);
Tailwind
colors: {
custom: {
50: '#6c57a2',
500: '#21177b',
950: '#000000',
},
}SCSS
$custom: #21177b; $custom-light: #6c57a2; $custom-dark: #000000;
JSON
{
"hex": "#21177b",
"rgb": {
"r": 33,
"g": 23,
"b": 123
},
"hsl": {
"h": 246,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.30355,
"c": 0.1577,
"h": 275.9
},
"luminance": 0.02366
}Semantic roles & 50–950 ramp
primary
#21177B
secondary
#A5B03E
accent
#EB3CDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F