#1F2E7A#1F2E7A
#1F2E7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.130 H 269.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E7A |
|---|---|
| RGB | rgb(31, 46, 122) |
| HSL | hsl(230, 59%, 30%) |
| HSV | hsv(230, 75%, 48%) |
| CMYK | cmyk(74.6%, 62.3%, 0%, 52.2%) |
| CIE-LAB | lab(22.48, 22.16, -45.12) |
| CIE-LCH | lch(22.48, 50.27, 296.16°) |
| OKLab | oklab(34.03% -0.001 -0.1302) |
| OKLCH | oklch(34.03% 0.13 269.6) |
| XYZ | xyz(5.0537, 3.6499, 18.8467) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.02
Midnight Blue
#191970
ΔE00 6.19
Darkslateblue
#483D8B
ΔE00 7.27
Marine Blue
#01386A
ΔE00 7.38
Sapphire (survey)
#2138AB
ΔE00 7.50
Blueberry
#464196
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E7A #7A6B1F
analogous
#1F5B7A #1F2E7A #3E1F7A
triadic
#1F2E7A #7A1F2E #2E7A1F
tetradic
#1F2E7A #7A1F5B #7A6B1F #1F7A3E
square
#1F2E7A #7A1F5B #7A6B1F #1F7A3E
split-complementary
#1F2E7A #7A3E1F #5B7A1F
monochromatic
#060918 #131C49 #1F2E7A #2B40AB #445BCF
Accessibility & contrast
On white
12.14
#1F2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E7A
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E7A | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2e7a; /* rgb */ color: rgb(31, 46, 122); /* oklch */ color: oklch(34.0% 0.130 269.6);
Tailwind
colors: {
custom: {
50: '#6966a1',
500: '#1f2e7a',
950: '#000000',
},
}SCSS
$custom: #1f2e7a; $custom-light: #6966a1; $custom-dark: #000000;
JSON
{
"hex": "#1f2e7a",
"rgb": {
"r": 31,
"g": 46,
"b": 122
},
"hsl": {
"h": 230.11,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.34029,
"c": 0.1302,
"h": 269.6
},
"luminance": 0.0365
}Semantic roles & 50–950 ramp
primary
#1F2E7A
secondary
#AD9D47
accent
#C945E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F