#1F2971#1F2971
#1F2971 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.124 H 271.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2971 |
|---|---|
| RGB | rgb(31, 41, 113) |
| HSL | hsl(233, 57%, 28%) |
| HSV | hsv(233, 73%, 44%) |
| CMYK | cmyk(72.6%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(20.32, 22.14, -42.89) |
| CIE-LCH | lch(20.32, 48.26, 297.30°) |
| OKLab | oklab(32.18% 0.0032 -0.1237) |
| OKLCH | oklch(32.18% 0.124 271.5) |
| XYZ | xyz(4.3376, 3.0690, 15.9834) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.85
Marine
#042E60
ΔE00 6.15
Royal
#0C1793
ΔE00 7.81
Navy Blue
#1B2A4A
ΔE00 8.12
Darkslateblue
#483D8B
ΔE00 8.20
Marine Blue
#01386A
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2971 #71671F
analogous
#1F5271 #1F2971 #3E1F71
triadic
#1F2971 #711F29 #29711F
tetradic
#1F2971 #711F52 #71671F #1F713E
square
#1F2971 #711F52 #71671F #1F713E
split-complementary
#1F2971 #713E1F #52711F
monochromatic
#070918 #121841 #1F2971 #2C3AA1 #4051CB
Accessibility & contrast
On white
13.01
#1F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F2971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2971
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2971 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2971; /* rgb */ color: rgb(31, 41, 113); /* oklch */ color: oklch(32.2% 0.124 271.5);
Tailwind
colors: {
custom: {
50: '#67629a',
500: '#1f2971',
950: '#000000',
},
}SCSS
$custom: #1f2971; $custom-light: #67629a; $custom-dark: #000000;
JSON
{
"hex": "#1f2971",
"rgb": {
"r": 31,
"g": 41,
"b": 113
},
"hsl": {
"h": 232.683,
"s": 56.944,
"l": 28.235
},
"oklch": {
"l": 0.32181,
"c": 0.12375,
"h": 271.5
},
"luminance": 0.03069
}Semantic roles & 50–950 ramp
primary
#1F2971
secondary
#A59947
accent
#CE48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E