#212F8B#212F8B
#212F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.152 H 270.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #212F8B |
|---|---|
| RGB | rgb(33, 47, 139) |
| HSL | hsl(232, 62%, 34%) |
| HSV | hsv(232, 76%, 55%) |
| CMYK | cmyk(76.3%, 66.2%, 0%, 45.5%) |
| CIE-LAB | lab(24.39, 28.30, -52.68) |
| CIE-LCH | lch(24.39, 59.80, 298.25°) |
| OKLab | oklab(35.94% -0.0001 -0.1523) |
| OKLCH | oklch(35.94% 0.152 270) |
| XYZ | xyz(6.3023, 4.2198, 24.9034) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.00
Royal
#0C1793
ΔE00 6.41
Darkslateblue
#483D8B
ΔE00 6.61
Blueberry
#464196
ΔE00 6.63
Midnight Blue
#191970
ΔE00 6.77
Marine
#042E60
ΔE00 8.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F8B #8B7D21
analogous
#21648B #212F8B #48218B
triadic
#212F8B #8B212F #2F8B21
tetradic
#212F8B #8B2164 #8B7D21 #218B48
square
#212F8B #8B2164 #8B7D21 #218B48
split-complementary
#212F8B #8B4821 #648B21
monochromatic
#0A0E28 #151E5A #212F8B #2D40BC #5162D6
Accessibility & contrast
On white
11.39
#212F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#212F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F8B
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F8B | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #212f8b; /* rgb */ color: rgb(33, 47, 139); /* oklch */ color: oklch(35.9% 0.152 270.0);
Tailwind
colors: {
custom: {
50: '#6e67ae',
500: '#212f8b',
950: '#000000',
},
}SCSS
$custom: #212f8b; $custom-light: #6e67ae; $custom-dark: #000000;
JSON
{
"hex": "#212f8b",
"rgb": {
"r": 33,
"g": 47,
"b": 139
},
"hsl": {
"h": 232.075,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.3594,
"c": 0.15232,
"h": 270
},
"luminance": 0.0422
}Semantic roles & 50–950 ramp
primary
#212F8B
secondary
#B9AB4F
accent
#CF43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F