#21397F#21397F
#21397F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.122 H 266.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).
Color values
| HEX | #21397F |
|---|---|
| RGB | rgb(33, 57, 127) |
| HSL | hsl(225, 59%, 31%) |
| HSV | hsv(225, 74%, 50%) |
| CMYK | cmyk(74%, 55.1%, 0%, 50.2%) |
| CIE-LAB | lab(26.10, 16.72, -42.38) |
| CIE-LCH | lch(26.10, 45.56, 291.53°) |
| OKLab | oklab(36.9% -0.0081 -0.1219) |
| OKLCH | oklch(36.9% 0.122 266.2) |
| XYZ | xyz(5.9198, 4.7813, 20.6855) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 4.95
Marine Blue
#01386A
ΔE00 5.33
Cobalt (survey)
#1E488F
ΔE00 5.46
Marine
#042E60
ΔE00 5.83
Twilight Blue
#0A437A
ΔE00 5.88
Blueberry
#464196
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21397F #7F6721
analogous
#21687F #21397F #38217F
triadic
#21397F #7F2139 #397F21
tetradic
#21397F #7F2168 #7F6721 #217F38
square
#21397F #7F2168 #7F6721 #217F38
split-complementary
#21397F #7F3821 #687F21
monochromatic
#080D1E #14234E #21397F #2E4FB0 #4A6CD0
Accessibility & contrast
On white
10.73
#21397F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#21397F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21397F
10.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21397F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21397F | 1.00 | 10.73 | 1.96 | 10.73 |
| #FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #21397f; /* rgb */ color: rgb(33, 57, 127); /* oklch */ color: oklch(36.9% 0.122 266.2);
Tailwind
colors: {
custom: {
50: '#6a6ea5',
500: '#21397f',
950: '#000000',
},
}SCSS
$custom: #21397f; $custom-light: #6a6ea5; $custom-dark: #000000;
JSON
{
"hex": "#21397f",
"rgb": {
"r": 33,
"g": 57,
"b": 127
},
"hsl": {
"h": 224.681,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.36902,
"c": 0.12222,
"h": 266.2
},
"luminance": 0.04782
}Semantic roles & 50–950 ramp
primary
#21397F
secondary
#B2974A
accent
#BA46E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F