#21197F#21197F
#21197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.161 H 275.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).
Color values
| HEX | #21197F |
|---|---|
| RGB | rgb(33, 25, 127) |
| HSL | hsl(245, 67%, 30%) |
| HSV | hsv(245, 80%, 50%) |
| CMYK | cmyk(74%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.14, 37.69, -55.41) |
| CIE-LCH | lch(18.14, 67.02, 304.23°) |
| OKLab | oklab(31.08% 0.0142 -0.1602) |
| OKLCH | oklch(31.08% 0.161 275.1) |
| XYZ | xyz(4.8043, 2.5504, 20.3136) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Royal
#0C1793
ΔE00 3.15
Dark Royal Blue
#02066F
ΔE00 4.62
Navy
#000080
ΔE00 4.62
Darkblue
#00008B
ΔE00 4.64
Indigo (survey)
#380282
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21197F #777F19
analogous
#19447F #21197F #54197F
triadic
#21197F #7F2119 #197F21
tetradic
#21197F #7F1944 #777F19 #197F54
square
#21197F #7F1944 #777F19 #197F54
split-complementary
#21197F #7F5419 #447F19
monochromatic
#07051A #140F4C #21197F #2E23B2 #473AD8
Accessibility & contrast
On white
13.91
#21197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#21197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21197F
13.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21197F | 1.00 | 13.91 | 1.51 | 13.91 |
| #FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #21197f; /* rgb */ color: rgb(33, 25, 127); /* oklch */ color: oklch(31.1% 0.161 275.1);
Tailwind
colors: {
custom: {
50: '#6d58a5',
500: '#21197f',
950: '#000000',
},
}SCSS
$custom: #21197f; $custom-light: #6d58a5; $custom-dark: #000000;
JSON
{
"hex": "#21197f",
"rgb": {
"r": 33,
"g": 25,
"b": 127
},
"hsl": {
"h": 244.706,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.31083,
"c": 0.16086,
"h": 275.1
},
"luminance": 0.02551
}Semantic roles & 50–950 ramp
primary
#21197F
secondary
#AAB341
accent
#EA3EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F