#1F2A70#1F2A70
#1F2A70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.121 H 271.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A70 |
|---|---|
| RGB | rgb(31, 42, 112) |
| HSL | hsl(232, 57%, 28%) |
| HSV | hsv(232, 72%, 44%) |
| CMYK | cmyk(72.3%, 62.5%, 0%, 56.1%) |
| CIE-LAB | lab(20.51, 21.04, -41.94) |
| CIE-LCH | lch(20.51, 46.92, 296.64°) |
| OKLab | oklab(32.29% 0.0024 -0.1209) |
| OKLCH | oklch(32.29% 0.121 271.1) |
| XYZ | xyz(4.3167, 3.1167, 15.7002) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.27
Marine
#042E60
ΔE00 5.78
Navy Blue
#1B2A4A
ΔE00 7.81
Marine Blue
#01386A
ΔE00 7.99
Darkslateblue
#483D8B
ΔE00 8.18
Royal
#0C1793
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A70 #70651F
analogous
#1F5270 #1F2A70 #3C1F70
triadic
#1F2A70 #701F2A #2A701F
tetradic
#1F2A70 #701F52 #70651F #1F703C
square
#1F2A70 #701F52 #70651F #1F703C
split-complementary
#1F2A70 #703C1F #52701F
monochromatic
#070918 #121840 #1F2A70 #2C3CA0 #3F52CA
Accessibility & contrast
On white
12.94
#1F2A70 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F2A70 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A70
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A70 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A70 | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2a70; /* rgb */ color: rgb(31, 42, 112); /* oklch */ color: oklch(32.3% 0.121 271.1);
Tailwind
colors: {
custom: {
50: '#66639a',
500: '#1f2a70',
950: '#000000',
},
}SCSS
$custom: #1f2a70; $custom-light: #66639a; $custom-dark: #000000;
JSON
{
"hex": "#1f2a70",
"rgb": {
"r": 31,
"g": 42,
"b": 112
},
"hsl": {
"h": 231.852,
"s": 56.643,
"l": 28.039
},
"oklch": {
"l": 0.32292,
"c": 0.12093,
"h": 271.1
},
"luminance": 0.03117
}Semantic roles & 50–950 ramp
primary
#1F2A70
secondary
#A49747
accent
#CB48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E