#1F2970#1F2970
#1F2970 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.122 H 271.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2970 |
|---|---|
| RGB | rgb(31, 41, 112) |
| HSL | hsl(233, 57%, 28%) |
| HSV | hsv(233, 72%, 44%) |
| CMYK | cmyk(72.3%, 63.4%, 0%, 56.1%) |
| CIE-LAB | lab(20.23, 21.75, -42.39) |
| CIE-LCH | lch(20.23, 47.64, 297.16°) |
| OKLab | oklab(32.09% 0.0032 -0.1222) |
| OKLCH | oklch(32.09% 0.122 271.5) |
| XYZ | xyz(4.2817, 3.0466, 15.6885) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.92
Marine
#042E60
ΔE00 6.05
Navy Blue
#1B2A4A
ΔE00 7.97
Royal
#0C1793
ΔE00 7.97
Darkslateblue
#483D8B
ΔE00 8.27
Marine Blue
#01386A
ΔE00 8.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2970 #70661F
analogous
#1F5170 #1F2970 #3E1F70
triadic
#1F2970 #701F29 #29701F
tetradic
#1F2970 #701F51 #70661F #1F703E
square
#1F2970 #701F51 #70661F #1F703E
split-complementary
#1F2970 #703E1F #51701F
monochromatic
#070918 #121740 #1F2970 #2C3BA0 #3F51CA
Accessibility & contrast
On white
13.05
#1F2970 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F2970 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2970
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2970 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2970 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2970; /* rgb */ color: rgb(31, 41, 112); /* oklch */ color: oklch(32.1% 0.122 271.5);
Tailwind
colors: {
custom: {
50: '#67629a',
500: '#1f2970',
950: '#000000',
},
}SCSS
$custom: #1f2970; $custom-light: #67629a; $custom-dark: #000000;
JSON
{
"hex": "#1f2970",
"rgb": {
"r": 31,
"g": 41,
"b": 112
},
"hsl": {
"h": 232.593,
"s": 56.643,
"l": 28.039
},
"oklch": {
"l": 0.32088,
"c": 0.12228,
"h": 271.5
},
"luminance": 0.03047
}Semantic roles & 50–950 ramp
primary
#1F2970
secondary
#A49847
accent
#CD48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E