#21197E#21197E
#21197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.160 H 275.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #21197E |
|---|---|
| RGB | rgb(33, 25, 126) |
| HSL | hsl(245, 67%, 30%) |
| HSV | hsv(245, 80%, 49%) |
| CMYK | cmyk(73.8%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(18.03, 37.36, -54.97) |
| CIE-LCH | lch(18.03, 66.46, 304.20°) |
| OKLab | oklab(30.97% 0.0145 -0.1589) |
| OKLCH | oklch(30.97% 0.16 275.2) |
| XYZ | xyz(4.7395, 2.5245, 19.9721) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.48
Royal
#0C1793
ΔE00 3.30
Dark Royal Blue
#02066F
ΔE00 4.56
Navy
#000080
ΔE00 4.65
Darkblue
#00008B
ΔE00 4.71
Deep Blue
#040273
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21197E #767E19
analogous
#19447E #21197E #53197E
triadic
#21197E #7E2119 #197E21
tetradic
#21197E #7E1944 #767E19 #197E53
square
#21197E #7E1944 #767E19 #197E53
split-complementary
#21197E #7E5319 #447E19
monochromatic
#07051A #140F4B #21197E #2E23B1 #463AD8
Accessibility & contrast
On white
13.95
#21197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#21197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21197E
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21197E | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #21197e; /* rgb */ color: rgb(33, 25, 126); /* oklch */ color: oklch(31.0% 0.160 275.2);
Tailwind
colors: {
custom: {
50: '#6c58a5',
500: '#21197e',
950: '#000000',
},
}SCSS
$custom: #21197e; $custom-light: #6c58a5; $custom-dark: #000000;
JSON
{
"hex": "#21197e",
"rgb": {
"r": 33,
"g": 25,
"b": 126
},
"hsl": {
"h": 244.752,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.30968,
"c": 0.1596,
"h": 275.2
},
"luminance": 0.02525
}Semantic roles & 50–950 ramp
primary
#21197E
secondary
#A9B241
accent
#EA3EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F