#1F2871#1F2871
#1F2871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.125 H 271.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2871 |
|---|---|
| RGB | rgb(31, 40, 113) |
| HSL | hsl(233, 57%, 28%) |
| HSV | hsv(233, 73%, 44%) |
| CMYK | cmyk(72.6%, 64.6%, 0%, 55.7%) |
| CIE-LAB | lab(20.05, 22.84, -43.33) |
| CIE-LCH | lch(20.05, 48.98, 297.79°) |
| OKLab | oklab(31.98% 0.0041 -0.125) |
| OKLCH | oklch(31.98% 0.125 271.9) |
| XYZ | xyz(4.3035, 3.0007, 15.9720) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.50
Marine
#042E60
ΔE00 6.42
Royal
#0C1793
ΔE00 7.57
Navy Blue
#1B2A4A
ΔE00 8.28
Darkslateblue
#483D8B
ΔE00 8.30
Darkblue (survey)
#030764
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2871 #71681F
analogous
#1F5171 #1F2871 #3F1F71
triadic
#1F2871 #711F28 #28711F
tetradic
#1F2871 #711F51 #71681F #1F713F
square
#1F2871 #711F51 #71681F #1F713F
split-complementary
#1F2871 #713F1F #51711F
monochromatic
#070818 #121741 #1F2871 #2C39A1 #404FCB
Accessibility & contrast
On white
13.12
#1F2871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#1F2871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2871
13.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2871 | 1.00 | 13.12 | 1.60 | 13.12 |
| #FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f2871; /* rgb */ color: rgb(31, 40, 113); /* oklch */ color: oklch(32.0% 0.125 271.9);
Tailwind
colors: {
custom: {
50: '#67619a',
500: '#1f2871',
950: '#000000',
},
}SCSS
$custom: #1f2871; $custom-light: #67619a; $custom-dark: #000000;
JSON
{
"hex": "#1f2871",
"rgb": {
"r": 31,
"g": 40,
"b": 113
},
"hsl": {
"h": 233.415,
"s": 56.944,
"l": 28.235
},
"oklch": {
"l": 0.31981,
"c": 0.12509,
"h": 271.9
},
"luminance": 0.03001
}Semantic roles & 50–950 ramp
primary
#1F2871
secondary
#A59B47
accent
#CF48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E