#213D8E#213D8E
#213D8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.139 H 265.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #213D8E |
|---|---|
| RGB | rgb(33, 61, 142) |
| HSL | hsl(225, 62%, 34%) |
| HSV | hsv(225, 77%, 56%) |
| CMYK | cmyk(76.8%, 57%, 0%, 44.3%) |
| CIE-LAB | lab(28.41, 19.89, -47.96) |
| CIE-LCH | lch(28.41, 51.93, 292.52°) |
| OKLab | oklab(39.02% -0.0103 -0.1383) |
| OKLCH | oklch(39.02% 0.139 265.8) |
| XYZ | xyz(7.1767, 5.6130, 26.2911) |
| Luminance | 0.0561 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.18
Darkish Blue
#014182
ΔE00 4.74
Sapphire (survey)
#2138AB
ΔE00 5.08
Cobalt
#0047AB
ΔE00 5.09
Twilight Blue
#0A437A
ΔE00 5.86
Blueberry
#464196
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#213D8E #8E7221
analogous
#21748E #213D8E #3C218E
triadic
#213D8E #8E213D #3D8E21
tetradic
#213D8E #8E2174 #8E7221 #218E3C
square
#213D8E #8E2174 #8E7221 #218E3C
split-complementary
#213D8E #8E3C21 #748E21
monochromatic
#0A122B #15285C #213D8E #2D52C0 #5275D7
Accessibility & contrast
On white
9.89
#213D8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#213D8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #213D8E
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##213D8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##213D8E | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #213d8e; /* rgb */ color: rgb(33, 61, 142); /* oklch */ color: oklch(39.0% 0.139 265.8);
Tailwind
colors: {
custom: {
50: '#6d72b0',
500: '#213d8e',
950: '#000000',
},
}SCSS
$custom: #213d8e; $custom-light: #6d72b0; $custom-dark: #000000;
JSON
{
"hex": "#213d8e",
"rgb": {
"r": 33,
"g": 61,
"b": 142
},
"hsl": {
"h": 224.587,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.39016,
"c": 0.13868,
"h": 265.8
},
"luminance": 0.05614
}Semantic roles & 50–950 ramp
primary
#213D8E
secondary
#BA9F50
accent
#BC42E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F