#212D8F#212D8F
#212D8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.160 H 270.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #212D8F |
|---|---|
| RGB | rgb(33, 45, 143) |
| HSL | hsl(233, 63%, 35%) |
| HSV | hsv(233, 77%, 56%) |
| CMYK | cmyk(76.9%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.27, 31.14, -55.36) |
| CIE-LCH | lch(24.27, 63.51, 299.36°) |
| OKLab | oklab(35.97% 0.0008 -0.1602) |
| OKLCH | oklch(35.97% 0.16 270.3) |
| XYZ | xyz(6.5218, 4.1826, 26.4449) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.77
Royal
#0C1793
ΔE00 5.56
Midnight Blue
#191970
ΔE00 6.59
Blueberry
#464196
ΔE00 6.89
Darkslateblue
#483D8B
ΔE00 6.90
Indigo Blue
#3A18B1
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212D8F #8F8321
analogous
#21648F #212D8F #4C218F
triadic
#212D8F #8F212D #2D8F21
tetradic
#212D8F #8F2164 #8F8321 #218F4C
square
#212D8F #8F2164 #8F8321 #218F4C
split-complementary
#212D8F #8F4C21 #648F21
monochromatic
#0A0E2C #161D5D #212D8F #2C3DC1 #5362D7
Accessibility & contrast
On white
11.43
#212D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#212D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212D8F
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212D8F | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #212d8f; /* rgb */ color: rgb(33, 45, 143); /* oklch */ color: oklch(36.0% 0.160 270.3);
Tailwind
colors: {
custom: {
50: '#6f66b1',
500: '#212d8f',
950: '#000000',
},
}SCSS
$custom: #212d8f; $custom-light: #6f66b1; $custom-dark: #000000;
JSON
{
"hex": "#212d8f",
"rgb": {
"r": 33,
"g": 45,
"b": 143
},
"hsl": {
"h": 233.455,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.35969,
"c": 0.16017,
"h": 270.3
},
"luminance": 0.04183
}Semantic roles & 50–950 ramp
primary
#212D8F
secondary
#BBAF51
accent
#D442E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80