#21117F#21117F
#21117F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.168 H 276.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).
Color values
| HEX | #21117F |
|---|---|
| RGB | rgb(33, 17, 127) |
| HSL | hsl(249, 76%, 28%) |
| HSV | hsv(249, 87%, 50%) |
| CMYK | cmyk(74%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(16.78, 41.68, -57.68) |
| CIE-LCH | lch(16.78, 71.16, 305.86°) |
| OKLab | oklab(30.14% 0.0175 -0.1667) |
| OKLCH | oklch(30.14% 0.168 276) |
| XYZ | xyz(4.6572, 2.2561, 20.2646) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.21
Royal
#0C1793
ΔE00 3.33
Darkblue
#00008B
ΔE00 3.33
Midnight Blue
#191970
ΔE00 3.47
Deep Blue
#040273
ΔE00 3.58
Indigo (survey)
#380282
ΔE00 3.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21117F #6F7F11
analogous
#11387F #21117F #58117F
triadic
#21117F #7F2111 #117F21
tetradic
#21117F #7F1138 #6F7F11 #117F58
square
#21117F #7F1138 #6F7F11 #117F58
split-complementary
#21117F #7F5811 #387F11
monochromatic
#07041B #130A49 #21117F #2F18B5 #4328E2
Accessibility & contrast
On white
14.47
#21117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#21117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21117F
14.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21117F | 1.00 | 14.47 | 1.45 | 14.47 |
| #FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21117f; /* rgb */ color: rgb(33, 17, 127); /* oklch */ color: oklch(30.1% 0.168 276.0);
Tailwind
colors: {
custom: {
50: '#6d54a5',
500: '#21117f',
950: '#000000',
},
}SCSS
$custom: #21117f; $custom-light: #6d54a5; $custom-dark: #000000;
JSON
{
"hex": "#21117f",
"rgb": {
"r": 33,
"g": 17,
"b": 127
},
"hsl": {
"h": 248.727,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.30135,
"c": 0.1676,
"h": 276
},
"luminance": 0.02257
}Semantic roles & 50–950 ramp
primary
#21117F
secondary
#A3B537
accent
#F335D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F