#1F2A76#1F2A76
#1F2A76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.130 H 271.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A76 |
|---|---|
| RGB | rgb(31, 42, 118) |
| HSL | hsl(232, 58%, 29%) |
| HSV | hsv(232, 74%, 46%) |
| CMYK | cmyk(73.7%, 64.4%, 0%, 53.7%) |
| CIE-LAB | lab(21.04, 23.38, -44.92) |
| CIE-LCH | lch(21.04, 50.64, 297.50°) |
| OKLab | oklab(32.85% 0.0023 -0.1297) |
| OKLCH | oklch(32.85% 0.13 271) |
| XYZ | xyz(4.6619, 3.2548, 17.5186) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.94
Marine
#042E60
ΔE00 6.42
Royal
#0C1793
ΔE00 7.31
Darkslateblue
#483D8B
ΔE00 7.80
Marine Blue
#01386A
ΔE00 8.31
Sapphire (survey)
#2138AB
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A76 #766B1F
analogous
#1F5676 #1F2A76 #401F76
triadic
#1F2A76 #761F2A #2A761F
tetradic
#1F2A76 #761F56 #766B1F #1F7640
square
#1F2A76 #761F56 #766B1F #1F7640
split-complementary
#1F2A76 #76401F #56761F
monochromatic
#060918 #121946 #1F2A76 #2C3BA6 #4254CD
Accessibility & contrast
On white
12.72
#1F2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1F2A76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A76
12.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A76 | 1.00 | 12.72 | 1.65 | 12.72 |
| #FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f2a76; /* rgb */ color: rgb(31, 42, 118); /* oklch */ color: oklch(32.9% 0.130 271.0);
Tailwind
colors: {
custom: {
50: '#68639e',
500: '#1f2a76',
950: '#000000',
},
}SCSS
$custom: #1f2a76; $custom-light: #68639e; $custom-dark: #000000;
JSON
{
"hex": "#1f2a76",
"rgb": {
"r": 31,
"g": 42,
"b": 118
},
"hsl": {
"h": 232.414,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.32851,
"c": 0.12969,
"h": 271
},
"luminance": 0.03255
}Semantic roles & 50–950 ramp
primary
#1F2A76
secondary
#AA9D47
accent
#CE46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E