#21168F#21168F
#21168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 273.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #21168F |
|---|---|
| RGB | rgb(33, 22, 143) |
| HSL | hsl(245, 73%, 32%) |
| HSV | hsv(245, 85%, 56%) |
| CMYK | cmyk(76.9%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(19.56, 44.39, -63.14) |
| CIE-LCH | lch(19.56, 77.18, 305.11°) |
| OKLab | oklab(32.63% 0.0111 -0.1826) |
| OKLCH | oklch(32.63% 0.183 273.5) |
| XYZ | xyz(5.8704, 2.8797, 26.2277) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.42
Cobalt Blue
#030AA7
ΔE00 3.53
Darkblue
#00008B
ΔE00 3.68
Royal Blue (survey)
#0504AA
ΔE00 4.03
Indigo (survey)
#380282
ΔE00 4.44
Navy
#000080
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21168F #848F16
analogous
#16478F #21168F #5E168F
triadic
#21168F #8F2116 #168F21
tetradic
#21168F #8F1647 #848F16 #168F5E
square
#21168F #8F1647 #848F16 #168F5E
split-complementary
#21168F #8F5E16 #478F16
monochromatic
#090625 #150E5A #21168F #2D1EC4 #4D3EE1
Accessibility & contrast
On white
13.32
#21168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#21168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21168F
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21168F | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21168f; /* rgb */ color: rgb(33, 22, 143); /* oklch */ color: oklch(32.6% 0.183 273.5);
Tailwind
colors: {
custom: {
50: '#7158b1',
500: '#21168f',
950: '#000000',
},
}SCSS
$custom: #21168f; $custom-light: #7158b1; $custom-dark: #000000;
JSON
{
"hex": "#21168f",
"rgb": {
"r": 33,
"g": 22,
"b": 143
},
"hsl": {
"h": 245.455,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.32625,
"c": 0.18295,
"h": 273.5
},
"luminance": 0.0288
}Semantic roles & 50–950 ramp
primary
#21168F
secondary
#B6C13F
accent
#F038DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880