#1F2A77#1F2A77
#1F2A77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.131 H 271.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A77 |
|---|---|
| RGB | rgb(31, 42, 119) |
| HSL | hsl(233, 59%, 29%) |
| HSV | hsv(233, 74%, 47%) |
| CMYK | cmyk(73.9%, 64.7%, 0%, 53.3%) |
| CIE-LAB | lab(21.13, 23.77, -45.41) |
| CIE-LCH | lch(21.13, 51.26, 297.63°) |
| OKLab | oklab(32.95% 0.0022 -0.1311) |
| OKLCH | oklch(32.95% 0.131 271) |
| XYZ | xyz(4.7217, 3.2787, 17.8332) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.91
Marine
#042E60
ΔE00 6.54
Royal
#0C1793
ΔE00 7.16
Darkslateblue
#483D8B
ΔE00 7.75
Sapphire (survey)
#2138AB
ΔE00 8.21
Marine Blue
#01386A
ΔE00 8.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A77 #776C1F
analogous
#1F5677 #1F2A77 #401F77
triadic
#1F2A77 #771F2A #2A771F
tetradic
#1F2A77 #771F56 #776C1F #1F7740
square
#1F2A77 #771F56 #776C1F #1F7740
split-complementary
#1F2A77 #77401F #56771F
monochromatic
#060918 #121946 #1F2A77 #2C3BA8 #4354CE
Accessibility & contrast
On white
12.68
#1F2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#1F2A77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A77
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A77 | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f2a77; /* rgb */ color: rgb(31, 42, 119); /* oklch */ color: oklch(32.9% 0.131 271.0);
Tailwind
colors: {
custom: {
50: '#68639f',
500: '#1f2a77',
950: '#000000',
},
}SCSS
$custom: #1f2a77; $custom-light: #68639f; $custom-dark: #000000;
JSON
{
"hex": "#1f2a77",
"rgb": {
"r": 31,
"g": 42,
"b": 119
},
"hsl": {
"h": 232.5,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.32946,
"c": 0.13114,
"h": 271
},
"luminance": 0.03279
}Semantic roles & 50–950 ramp
primary
#1F2A77
secondary
#AB9E47
accent
#CE46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E