#21189E#21189E
#21189E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.7% C 0.199 H 271.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #21189E |
|---|---|
| RGB | rgb(33, 24, 158) |
| HSL | hsl(244, 74%, 36%) |
| HSV | hsv(244, 85%, 62%) |
| CMYK | cmyk(79.1%, 84.8%, 0%, 38%) |
| CIE-LAB | lab(21.74, 48.12, -68.77) |
| CIE-LCH | lch(21.74, 83.93, 304.99°) |
| OKLab | oklab(34.67% 0.0066 -0.1989) |
| OKLCH | oklch(34.67% 0.199 271.9) |
| XYZ | xyz(7.1233, 3.4444, 32.6305) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.15
Cobalt Blue
#030AA7
ΔE00 2.34
Royal Blue (survey)
#0504AA
ΔE00 2.85
Ultramarine
#2000B1
ΔE00 3.34
Indigo Blue
#3A18B1
ΔE00 3.69
Darkblue
#00008B
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21189E #959E18
analogous
#18529E #21189E #64189E
triadic
#21189E #9E2118 #189E21
tetradic
#21189E #9E1852 #959E18 #189E64
square
#21189E #9E1852 #959E18 #189E64
split-complementary
#21189E #9E6418 #529E18
monochromatic
#0B0834 #161069 #21189E #2C20D3 #574DE4
Accessibility & contrast
On white
12.43
#21189E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#21189E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21189E
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21189E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21189E | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #21189e; /* rgb */ color: rgb(33, 24, 158); /* oklch */ color: oklch(34.7% 0.199 271.9);
Tailwind
colors: {
custom: {
50: '#755abc',
500: '#21189e',
950: '#000000',
},
}SCSS
$custom: #21189e; $custom-light: #755abc; $custom-dark: #000000;
JSON
{
"hex": "#21189e",
"rgb": {
"r": 33,
"g": 24,
"b": 158
},
"hsl": {
"h": 244.03,
"s": 73.626,
"l": 35.686
},
"oklch": {
"l": 0.34671,
"c": 0.19905,
"h": 271.9
},
"luminance": 0.03445
}Semantic roles & 50–950 ramp
primary
#21189E
secondary
#BEC64C
accent
#F038E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981