#212F7F#212F7F
#212F7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 270.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #212F7F |
|---|---|
| RGB | rgb(33, 47, 127) |
| HSL | hsl(231, 59%, 31%) |
| HSV | hsv(231, 74%, 50%) |
| CMYK | cmyk(74%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(23.30, 23.69, -46.94) |
| CIE-LCH | lch(23.30, 52.58, 296.78°) |
| OKLab | oklab(34.8% 0.0003 -0.1355) |
| OKLCH | oklch(34.8% 0.136 270.1) |
| XYZ | xyz(5.4732, 3.8881, 20.5366) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.39
Marine
#042E60
ΔE00 6.68
Sapphire (survey)
#2138AB
ΔE00 6.69
Darkslateblue
#483D8B
ΔE00 6.78
Blueberry
#464196
ΔE00 7.21
Royal
#0C1793
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F7F #7F7121
analogous
#215E7F #212F7F #42217F
triadic
#212F7F #7F212F #2F7F21
tetradic
#212F7F #7F215E #7F7121 #217F42
square
#212F7F #7F215E #7F7121 #217F42
split-complementary
#212F7F #7F4221 #5E7F21
monochromatic
#080B1E #141D4E #212F7F #2E41B0 #4A5ED0
Accessibility & contrast
On white
11.81
#212F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#212F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F7F
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F7F | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #212f7f; /* rgb */ color: rgb(33, 47, 127); /* oklch */ color: oklch(34.8% 0.136 270.1);
Tailwind
colors: {
custom: {
50: '#6b67a5',
500: '#212f7f',
950: '#000000',
},
}SCSS
$custom: #212f7f; $custom-light: #6b67a5; $custom-dark: #000000;
JSON
{
"hex": "#212f7f",
"rgb": {
"r": 33,
"g": 47,
"b": 127
},
"hsl": {
"h": 231.064,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34803,
"c": 0.1355,
"h": 270.1
},
"luminance": 0.03889
}Semantic roles & 50–950 ramp
primary
#212F7F
secondary
#B2A24A
accent
#CB46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F