#21169E#21169E
#21169E is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.5% C 0.200 H 272.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #21169E |
|---|---|
| RGB | rgb(33, 22, 158) |
| HSL | hsl(245, 76%, 35%) |
| HSV | hsv(245, 86%, 62%) |
| CMYK | cmyk(79.1%, 86.1%, 0%, 38%) |
| CIE-LAB | lab(21.45, 48.99, -69.25) |
| CIE-LCH | lch(21.45, 84.83, 305.28°) |
| OKLab | oklab(34.47% 0.007 -0.2003) |
| OKLCH | oklch(34.47% 0.2 272) |
| XYZ | xyz(7.0836, 3.3650, 32.6173) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.10
Royal
#0C1793
ΔE00 2.16
Royal Blue (survey)
#0504AA
ΔE00 2.59
Ultramarine
#2000B1
ΔE00 3.11
Indigo Blue
#3A18B1
ΔE00 3.72
Darkblue
#00008B
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21169E #939E16
analogous
#164F9E #21169E #65169E
triadic
#21169E #9E2116 #169E21
tetradic
#21169E #9E164F #939E16 #169E65
square
#21169E #9E164F #939E16 #169E65
split-complementary
#21169E #9E6516 #4F9E16
monochromatic
#0B0733 #160F68 #21169E #2C1DD4 #5549E6
Accessibility & contrast
On white
12.55
#21169E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#21169E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21169E
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21169E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21169E | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #21169e; /* rgb */ color: rgb(33, 22, 158); /* oklch */ color: oklch(34.5% 0.200 272.0);
Tailwind
colors: {
custom: {
50: '#7559bc',
500: '#21169e',
950: '#000000',
},
}SCSS
$custom: #21169e; $custom-light: #7559bc; $custom-dark: #000000;
JSON
{
"hex": "#21169e",
"rgb": {
"r": 33,
"g": 22,
"b": 158
},
"hsl": {
"h": 244.853,
"s": 75.556,
"l": 35.294
},
"oklch": {
"l": 0.3447,
"c": 0.20043,
"h": 272
},
"luminance": 0.03366
}Semantic roles & 50–950 ramp
primary
#21169E
secondary
#BDC749
accent
#F236E3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981