#21107F#21107F
#21107F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 276.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #21107F |
|---|---|
| RGB | rgb(33, 16, 127) |
| HSL | hsl(249, 78%, 28%) |
| HSV | hsv(249, 87%, 50%) |
| CMYK | cmyk(74%, 87.4%, 0%, 50.2%) |
| CIE-LAB | lab(16.63, 42.12, -57.92) |
| CIE-LCH | lch(16.63, 71.61, 306.02°) |
| OKLab | oklab(30.03% 0.0179 -0.1674) |
| OKLCH | oklch(30.03% 0.168 276.1) |
| XYZ | xyz(4.6420, 2.2258, 20.2595) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.08
Darkblue
#00008B
ΔE00 3.21
Royal
#0C1793
ΔE00 3.39
Deep Blue
#040273
ΔE00 3.47
Indigo (survey)
#380282
ΔE00 3.49
Midnight Blue
#191970
ΔE00 3.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21107F #6E7F10
analogous
#10377F #21107F #58107F
triadic
#21107F #7F2110 #107F21
tetradic
#21107F #7F1037 #6E7F10 #107F58
square
#21107F #7F1037 #6E7F10 #107F58
split-complementary
#21107F #7F5810 #377F10
monochromatic
#07031B #130949 #21107F #2F17B5 #4326E4
Accessibility & contrast
On white
14.53
#21107F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#21107F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21107F
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21107F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21107F | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21107f; /* rgb */ color: rgb(33, 16, 127); /* oklch */ color: oklch(30.0% 0.168 276.1);
Tailwind
colors: {
custom: {
50: '#6e53a5',
500: '#21107f',
950: '#000000',
},
}SCSS
$custom: #21107f; $custom-light: #6e53a5; $custom-dark: #000000;
JSON
{
"hex": "#21107f",
"rgb": {
"r": 33,
"g": 16,
"b": 127
},
"hsl": {
"h": 249.189,
"s": 77.622,
"l": 28.039
},
"oklch": {
"l": 0.30033,
"c": 0.16832,
"h": 276.1
},
"luminance": 0.02226
}Semantic roles & 50–950 ramp
primary
#21107F
secondary
#A2B536
accent
#F434D7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F