#212D9E#212D9E
#212D9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.180 H 269.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).
Color values
| HEX | #212D9E |
|---|---|
| RGB | rgb(33, 45, 158) |
| HSL | hsl(234, 65%, 37%) |
| HSV | hsv(234, 79%, 62%) |
| CMYK | cmyk(79.1%, 71.5%, 0%, 38%) |
| CIE-LAB | lab(25.77, 36.65, -62.11) |
| CIE-LCH | lch(25.77, 72.11, 300.54°) |
| OKLab | oklab(37.51% -0.0007 -0.1799) |
| OKLCH | oklch(37.51% 0.18 269.8) |
| XYZ | xyz(7.7350, 4.6679, 32.8344) |
| Luminance | 0.0467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.44
Royal
#0C1793
ΔE00 5.38
Indigo Blue
#3A18B1
ΔE00 6.00
Cobalt Blue
#030AA7
ΔE00 6.75
Blueberry
#464196
ΔE00 6.98
Royal Blue (survey)
#0504AA
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212D9E #9E9221
analogous
#216C9E #212D9E #54219E
triadic
#212D9E #9E212D #2D9E21
tetradic
#212D9E #9E216C #9E9221 #219E54
square
#212D9E #9E216C #9E9221 #219E54
split-complementary
#212D9E #9E5421 #6C9E21
monochromatic
#0C1039 #161F6B #212D9E #2C3BD1 #5C69DD
Accessibility & contrast
On white
10.86
#212D9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#212D9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212D9E
10.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212D9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212D9E | 1.00 | 10.86 | 1.93 | 10.86 |
| #FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #212d9e; /* rgb */ color: rgb(33, 45, 158); /* oklch */ color: oklch(37.5% 0.180 269.8);
Tailwind
colors: {
custom: {
50: '#7366bc',
500: '#212d9e',
950: '#000000',
},
}SCSS
$custom: #212d9e; $custom-light: #7366bc; $custom-dark: #000000;
JSON
{
"hex": "#212d9e",
"rgb": {
"r": 33,
"g": 45,
"b": 158
},
"hsl": {
"h": 234.24,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.3751,
"c": 0.17986,
"h": 269.8
},
"luminance": 0.04669
}Semantic roles & 50–950 ramp
primary
#212D9E
secondary
#C1B759
accent
#D83FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81