#21107E#21107E
#21107E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.167 H 276.2°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).
Color values
| HEX | #21107E |
|---|---|
| RGB | rgb(33, 16, 126) |
| HSL | hsl(249, 77%, 28%) |
| HSV | hsv(249, 87%, 49%) |
| CMYK | cmyk(73.8%, 87.3%, 0%, 50.6%) |
| CIE-LAB | lab(16.50, 41.81, -57.49) |
| CIE-LCH | lch(16.50, 71.09, 306.03°) |
| OKLab | oklab(29.91% 0.0182 -0.1661) |
| OKLCH | oklch(29.91% 0.167 276.2) |
| XYZ | xyz(4.5772, 2.1998, 19.9180) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 3.09
Darkblue
#00008B
ΔE00 3.30
Deep Blue
#040273
ΔE00 3.40
Midnight Blue
#191970
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 3.50
Royal
#0C1793
ΔE00 3.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21107E #6D7E10
analogous
#10367E #21107E #58107E
triadic
#21107E #7E2110 #107E21
tetradic
#21107E #7E1036 #6D7E10 #107E58
square
#21107E #7E1036 #6D7E10 #107E58
split-complementary
#21107E #7E5810 #367E10
monochromatic
#07031B #130948 #21107E #2F17B4 #4225E3
Accessibility & contrast
On white
14.58
#21107E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#21107E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21107E
14.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21107E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21107E | 1.00 | 14.58 | 1.44 | 14.58 |
| #FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21107e; /* rgb */ color: rgb(33, 16, 126); /* oklch */ color: oklch(29.9% 0.167 276.2);
Tailwind
colors: {
custom: {
50: '#6d53a5',
500: '#21107e',
950: '#000000',
},
}SCSS
$custom: #21107e; $custom-light: #6d53a5; $custom-dark: #000000;
JSON
{
"hex": "#21107e",
"rgb": {
"r": 33,
"g": 16,
"b": 126
},
"hsl": {
"h": 249.273,
"s": 77.465,
"l": 27.843
},
"oklch": {
"l": 0.2991,
"c": 0.16712,
"h": 276.2
},
"luminance": 0.022
}Semantic roles & 50–950 ramp
primary
#21107E
secondary
#A1B436
accent
#F434D6
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F