#1F2A72#1F2A72
#1F2A72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.124 H 271.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A72 |
|---|---|
| RGB | rgb(31, 42, 114) |
| HSL | hsl(232, 57%, 28%) |
| HSV | hsv(232, 73%, 45%) |
| CMYK | cmyk(72.8%, 63.2%, 0%, 55.3%) |
| CIE-LAB | lab(20.68, 21.83, -42.94) |
| CIE-LCH | lch(20.68, 48.17, 296.94°) |
| OKLab | oklab(32.48% 0.0024 -0.1238) |
| OKLCH | oklch(32.48% 0.124 271.1) |
| XYZ | xyz(4.4293, 3.1617, 16.2932) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.13
Marine
#042E60
ΔE00 5.99
Royal
#0C1793
ΔE00 7.91
Darkslateblue
#483D8B
ΔE00 8.04
Marine Blue
#01386A
ΔE00 8.09
Navy Blue
#1B2A4A
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A72 #72671F
analogous
#1F5372 #1F2A72 #3D1F72
triadic
#1F2A72 #721F2A #2A721F
tetradic
#1F2A72 #721F53 #72671F #1F723D
square
#1F2A72 #721F53 #72671F #1F723D
split-complementary
#1F2A72 #723D1F #53721F
monochromatic
#070918 #121842 #1F2A72 #2C3CA2 #4053CB
Accessibility & contrast
On white
12.86
#1F2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F2A72 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A72
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A72 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A72 | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2a72; /* rgb */ color: rgb(31, 42, 114); /* oklch */ color: oklch(32.5% 0.124 271.1);
Tailwind
colors: {
custom: {
50: '#67639b',
500: '#1f2a72',
950: '#000000',
},
}SCSS
$custom: #1f2a72; $custom-light: #67639b; $custom-dark: #000000;
JSON
{
"hex": "#1f2a72",
"rgb": {
"r": 31,
"g": 42,
"b": 114
},
"hsl": {
"h": 232.048,
"s": 57.241,
"l": 28.431
},
"oklch": {
"l": 0.32477,
"c": 0.12387,
"h": 271.1
},
"luminance": 0.03162
}Semantic roles & 50–950 ramp
primary
#1F2A72
secondary
#A69947
accent
#CC47E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E