#1F2F78#1F2F78
#1F2F78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.126 H 269.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F78 |
|---|---|
| RGB | rgb(31, 47, 120) |
| HSL | hsl(229, 59%, 30%) |
| HSV | hsv(229, 74%, 47%) |
| CMYK | cmyk(74.2%, 60.8%, 0%, 52.9%) |
| CIE-LAB | lab(22.58, 20.67, -43.68) |
| CIE-LCH | lch(22.58, 48.32, 295.33°) |
| OKLab | oklab(34.05% -0.0018 -0.1259) |
| OKLCH | oklch(34.05% 0.126 269.2) |
| XYZ | xyz(4.9706, 3.6799, 18.2140) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.57
Midnight Blue
#191970
ΔE00 6.60
Marine Blue
#01386A
ΔE00 6.94
Darkslateblue
#483D8B
ΔE00 7.35
Sapphire (survey)
#2138AB
ΔE00 7.77
Darkish Blue
#014182
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F78 #78681F
analogous
#1F5C78 #1F2F78 #3B1F78
triadic
#1F2F78 #781F2F #2F781F
tetradic
#1F2F78 #781F5C #78681F #1F783B
square
#1F2F78 #781F5C #78681F #1F783B
split-complementary
#1F2F78 #783B1F #5C781F
monochromatic
#060A18 #121C47 #1F2F78 #2C42A9 #435CCE
Accessibility & contrast
On white
12.10
#1F2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#1F2F78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F78
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F78 | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2f78; /* rgb */ color: rgb(31, 47, 120); /* oklch */ color: oklch(34.1% 0.126 269.2);
Tailwind
colors: {
custom: {
50: '#6867a0',
500: '#1f2f78',
950: '#000000',
},
}SCSS
$custom: #1f2f78; $custom-light: #6867a0; $custom-dark: #000000;
JSON
{
"hex": "#1f2f78",
"rgb": {
"r": 31,
"g": 47,
"b": 120
},
"hsl": {
"h": 229.213,
"s": 58.94,
"l": 29.608
},
"oklch": {
"l": 0.34054,
"c": 0.12596,
"h": 269.2
},
"luminance": 0.0368
}Semantic roles & 50–950 ramp
primary
#1F2F78
secondary
#AB9947
accent
#C646E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E