#1F2872#1F2872
#1F2872 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.127 H 271.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2872 |
|---|---|
| RGB | rgb(31, 40, 114) |
| HSL | hsl(233, 57%, 28%) |
| HSV | hsv(233, 73%, 45%) |
| CMYK | cmyk(72.8%, 64.9%, 0%, 55.3%) |
| CIE-LAB | lab(20.14, 23.22, -43.82) |
| CIE-LCH | lch(20.14, 49.60, 297.92°) |
| OKLab | oklab(32.07% 0.004 -0.1265) |
| OKLCH | oklch(32.07% 0.127 271.8) |
| XYZ | xyz(4.3601, 3.0234, 16.2701) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.44
Marine
#042E60
ΔE00 6.51
Royal
#0C1793
ΔE00 7.41
Darkslateblue
#483D8B
ΔE00 8.24
Navy Blue
#1B2A4A
ΔE00 8.43
Darkblue (survey)
#030764
ΔE00 8.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2872 #72691F
analogous
#1F5172 #1F2872 #3F1F72
triadic
#1F2872 #721F28 #28721F
tetradic
#1F2872 #721F51 #72691F #1F723F
square
#1F2872 #721F51 #72691F #1F723F
split-complementary
#1F2872 #723F1F #51721F
monochromatic
#070818 #121742 #1F2872 #2C39A2 #404FCB
Accessibility & contrast
On white
13.09
#1F2872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#1F2872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2872
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2872 | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2872; /* rgb */ color: rgb(31, 40, 114); /* oklch */ color: oklch(32.1% 0.127 271.8);
Tailwind
colors: {
custom: {
50: '#67619b',
500: '#1f2872',
950: '#000000',
},
}SCSS
$custom: #1f2872; $custom-light: #67619b; $custom-dark: #000000;
JSON
{
"hex": "#1f2872",
"rgb": {
"r": 31,
"g": 40,
"b": 114
},
"hsl": {
"h": 233.494,
"s": 57.241,
"l": 28.431
},
"oklch": {
"l": 0.32075,
"c": 0.12653,
"h": 271.8
},
"luminance": 0.03024
}Semantic roles & 50–950 ramp
primary
#1F2872
secondary
#A69C47
accent
#D047E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E