#212B7B#212B7B
#212B7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.135 H 271.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).
Color values
| HEX | #212B7B |
|---|---|
| RGB | rgb(33, 43, 123) |
| HSL | hsl(233, 58%, 31%) |
| HSV | hsv(233, 73%, 48%) |
| CMYK | cmyk(73.2%, 65%, 0%, 51.8%) |
| CIE-LAB | lab(21.87, 24.91, -46.74) |
| CIE-LCH | lch(21.87, 52.96, 298.05°) |
| OKLab | oklab(33.64% 0.0035 -0.1349) |
| OKLCH | oklch(33.64% 0.135 271.5) |
| XYZ | xyz(5.0650, 3.4806, 19.1400) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.11
Royal
#0C1793
ΔE00 6.85
Marine
#042E60
ΔE00 6.97
Darkslateblue
#483D8B
ΔE00 7.29
Sapphire (survey)
#2138AB
ΔE00 7.57
Blueberry
#464196
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212B7B #7B7121
analogous
#21587B #212B7B #44217B
triadic
#212B7B #7B212B #2B7B21
tetradic
#212B7B #7B2158 #7B7121 #217B44
square
#212B7B #7B2158 #7B7121 #217B44
split-complementary
#212B7B #7B4421 #587B21
monochromatic
#07091A #141A4B #212B7B #2E3CAB #4857CE
Accessibility & contrast
On white
12.38
#212B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#212B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212B7B
12.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212B7B | 1.00 | 12.38 | 1.70 | 12.38 |
| #FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #212b7b; /* rgb */ color: rgb(33, 43, 123); /* oklch */ color: oklch(33.6% 0.135 271.5);
Tailwind
colors: {
custom: {
50: '#6a64a2',
500: '#212b7b',
950: '#000000',
},
}SCSS
$custom: #212b7b; $custom-light: #6a64a2; $custom-dark: #000000;
JSON
{
"hex": "#212b7b",
"rgb": {
"r": 33,
"g": 43,
"b": 123
},
"hsl": {
"h": 233.333,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.33641,
"c": 0.13498,
"h": 271.5
},
"luminance": 0.03481
}Semantic roles & 50–950 ramp
primary
#212B7B
secondary
#AEA34A
accent
#D047E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F