#1F2972#1F2972
#1F2972 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.125 H 271.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2972 |
|---|---|
| RGB | rgb(31, 41, 114) |
| HSL | hsl(233, 57%, 28%) |
| HSV | hsv(233, 73%, 45%) |
| CMYK | cmyk(72.8%, 64%, 0%, 55.3%) |
| CIE-LAB | lab(20.41, 22.52, -43.38) |
| CIE-LCH | lch(20.41, 48.88, 297.44°) |
| OKLab | oklab(32.28% 0.0032 -0.1252) |
| OKLCH | oklch(32.28% 0.125 271.5) |
| XYZ | xyz(4.3942, 3.0917, 16.2815) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.78
Marine
#042E60
ΔE00 6.25
Royal
#0C1793
ΔE00 7.66
Darkslateblue
#483D8B
ΔE00 8.13
Navy Blue
#1B2A4A
ΔE00 8.27
Marine Blue
#01386A
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2972 #72681F
analogous
#1F5272 #1F2972 #3E1F72
triadic
#1F2972 #721F29 #29721F
tetradic
#1F2972 #721F52 #72681F #1F723E
square
#1F2972 #721F52 #72681F #1F723E
split-complementary
#1F2972 #723E1F #52721F
monochromatic
#070918 #121842 #1F2972 #2C3AA2 #4051CB
Accessibility & contrast
On white
12.98
#1F2972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F2972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2972
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2972 | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2972; /* rgb */ color: rgb(31, 41, 114); /* oklch */ color: oklch(32.3% 0.125 271.5);
Tailwind
colors: {
custom: {
50: '#67629b',
500: '#1f2972',
950: '#000000',
},
}SCSS
$custom: #1f2972; $custom-light: #67629b; $custom-dark: #000000;
JSON
{
"hex": "#1f2972",
"rgb": {
"r": 31,
"g": 41,
"b": 114
},
"hsl": {
"h": 232.771,
"s": 57.241,
"l": 28.431
},
"oklch": {
"l": 0.32275,
"c": 0.12521,
"h": 271.5
},
"luminance": 0.03092
}Semantic roles & 50–950 ramp
primary
#1F2972
secondary
#A69A47
accent
#CE47E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E