#21197B#21197B
#21197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.156 H 275.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #21197B |
|---|---|
| RGB | rgb(33, 25, 123) |
| HSL | hsl(245, 66%, 29%) |
| HSV | hsv(245, 80%, 48%) |
| CMYK | cmyk(73.2%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(17.68, 36.35, -53.63) |
| CIE-LCH | lch(17.68, 64.78, 304.13°) |
| OKLab | oklab(30.62% 0.0152 -0.155) |
| OKLCH | oklch(30.62% 0.156 275.6) |
| XYZ | xyz(4.5488, 2.4482, 18.9679) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.05
Royal
#0C1793
ΔE00 3.74
Dark Royal Blue
#02066F
ΔE00 4.41
Deep Blue
#040273
ΔE00 4.72
Navy
#000080
ΔE00 4.77
Darkblue
#00008B
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21197B #737B19
analogous
#19427B #21197B #52197B
triadic
#21197B #7B2119 #197B21
tetradic
#21197B #7B1942 #737B19 #197B52
square
#21197B #7B1942 #737B19 #197B52
split-complementary
#21197B #7B5219 #427B19
monochromatic
#070519 #130F48 #21197B #2F23AE #4538D7
Accessibility & contrast
On white
14.10
#21197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21197B
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21197B | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21197b; /* rgb */ color: rgb(33, 25, 123); /* oklch */ color: oklch(30.6% 0.156 275.6);
Tailwind
colors: {
custom: {
50: '#6c58a2',
500: '#21197b',
950: '#000000',
},
}SCSS
$custom: #21197b; $custom-light: #6c58a2; $custom-dark: #000000;
JSON
{
"hex": "#21197b",
"rgb": {
"r": 33,
"g": 25,
"b": 123
},
"hsl": {
"h": 244.898,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.30623,
"c": 0.15579,
"h": 275.6
},
"luminance": 0.02449
}Semantic roles & 50–950 ramp
primary
#21197B
secondary
#A6AF40
accent
#E93FDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F