#212F8F#212F8F
#212F8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.158 H 269.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).
Color values
| HEX | #212F8F |
|---|---|
| RGB | rgb(33, 47, 143) |
| HSL | hsl(232, 63%, 35%) |
| HSV | hsv(232, 77%, 56%) |
| CMYK | cmyk(76.9%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(24.76, 29.82, -54.55) |
| CIE-LCH | lch(24.76, 62.16, 298.66°) |
| OKLab | oklab(36.33% -0.0004 -0.1578) |
| OKLCH | oklch(36.33% 0.158 269.9) |
| XYZ | xyz(6.5999, 4.3388, 26.4709) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.49
Royal
#0C1793
ΔE00 6.16
Blueberry
#464196
ΔE00 6.54
Darkslateblue
#483D8B
ΔE00 6.66
Midnight Blue
#191970
ΔE00 7.03
Indigo Blue
#3A18B1
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F8F #8F8121
analogous
#21668F #212F8F #4A218F
triadic
#212F8F #8F212F #2F8F21
tetradic
#212F8F #8F2166 #8F8121 #218F4A
square
#212F8F #8F2166 #8F8121 #218F4A
split-complementary
#212F8F #8F4A21 #668F21
monochromatic
#0A0E2C #161F5D #212F8F #2C3FC1 #5364D7
Accessibility & contrast
On white
11.24
#212F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#212F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F8F
11.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F8F | 1.00 | 11.24 | 1.87 | 11.24 |
| #FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #212f8f; /* rgb */ color: rgb(33, 47, 143); /* oklch */ color: oklch(36.3% 0.158 269.9);
Tailwind
colors: {
custom: {
50: '#6f67b1',
500: '#212f8f',
950: '#000000',
},
}SCSS
$custom: #212f8f; $custom-light: #6f67b1; $custom-dark: #000000;
JSON
{
"hex": "#212f8f",
"rgb": {
"r": 33,
"g": 47,
"b": 143
},
"hsl": {
"h": 232.364,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.36331,
"c": 0.15778,
"h": 269.9
},
"luminance": 0.0434
}Semantic roles & 50–950 ramp
primary
#212F8F
secondary
#BBAD51
accent
#D142E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80