#21118C#21118C
#21118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.183 H 274.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #21118C |
|---|---|
| RGB | rgb(33, 17, 140) |
| HSL | hsl(248, 78%, 31%) |
| HSV | hsv(248, 88%, 55%) |
| CMYK | cmyk(76.4%, 87.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.44, 45.64, -63.12) |
| CIE-LCH | lch(18.44, 77.89, 305.87°) |
| OKLab | oklab(31.75% 0.0134 -0.1824) |
| OKLCH | oklch(31.75% 0.183 274.2) |
| XYZ | xyz(5.5597, 2.6171, 25.0180) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.99
Darkblue
#00008B
ΔE00 2.90
Navy
#000080
ΔE00 3.66
Cobalt Blue
#030AA7
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 3.75
Royal Blue (survey)
#0504AA
ΔE00 4.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21118C #7C8C11
analogous
#113E8C #21118C #5E118C
triadic
#21118C #8C2111 #118C21
tetradic
#21118C #8C113E #7C8C11 #118C5E
square
#21118C #8C113E #7C8C11 #118C5E
split-complementary
#21118C #8C5E11 #3E8C11
monochromatic
#07041F #140A55 #21118C #2E18C3 #4931E6
Accessibility & contrast
On white
13.78
#21118C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#21118C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21118C
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21118C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21118C | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #21118c; /* rgb */ color: rgb(33, 17, 140); /* oklch */ color: oklch(31.8% 0.183 274.2);
Tailwind
colors: {
custom: {
50: '#7155af',
500: '#21118c',
950: '#000000',
},
}SCSS
$custom: #21118c; $custom-light: #7155af; $custom-dark: #000000;
JSON
{
"hex": "#21118c",
"rgb": {
"r": 33,
"g": 17,
"b": 140
},
"hsl": {
"h": 247.805,
"s": 78.344,
"l": 30.784
},
"oklch": {
"l": 0.3175,
"c": 0.18294,
"h": 274.2
},
"luminance": 0.02618
}Semantic roles & 50–950 ramp
primary
#21118C
secondary
#AFC138
accent
#F533DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880