#21117E#21117E
#21117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.166 H 276.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #21117E |
|---|---|
| RGB | rgb(33, 17, 126) |
| HSL | hsl(249, 76%, 28%) |
| HSV | hsv(249, 87%, 49%) |
| CMYK | cmyk(73.8%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(16.65, 41.37, -57.25) |
| CIE-LCH | lch(16.65, 70.63, 305.85°) |
| OKLab | oklab(30.01% 0.0178 -0.1654) |
| OKLCH | oklch(30.01% 0.166 276.2) |
| XYZ | xyz(4.5923, 2.2302, 19.9231) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.23
Midnight Blue
#191970
ΔE00 3.36
Darkblue
#00008B
ΔE00 3.42
Royal
#0C1793
ΔE00 3.46
Deep Blue
#040273
ΔE00 3.52
Dark Royal Blue
#02066F
ΔE00 3.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21117E #6E7E11
analogous
#11387E #21117E #57117E
triadic
#21117E #7E2111 #117E21
tetradic
#21117E #7E1138 #6E7E11 #117E57
square
#21117E #7E1138 #6E7E11 #117E57
split-complementary
#21117E #7E5711 #387E11
monochromatic
#07041B #130A48 #21117E #2F18B4 #4327E2
Accessibility & contrast
On white
14.52
#21117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#21117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21117E
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21117E | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21117e; /* rgb */ color: rgb(33, 17, 126); /* oklch */ color: oklch(30.0% 0.166 276.2);
Tailwind
colors: {
custom: {
50: '#6d54a5',
500: '#21117e',
950: '#000000',
},
}SCSS
$custom: #21117e; $custom-light: #6d54a5; $custom-dark: #000000;
JSON
{
"hex": "#21117e",
"rgb": {
"r": 33,
"g": 17,
"b": 126
},
"hsl": {
"h": 248.807,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30012,
"c": 0.1664,
"h": 276.2
},
"luminance": 0.02231
}Semantic roles & 50–950 ramp
primary
#21117E
secondary
#A2B437
accent
#F335D7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F