#1F2A7A#1F2A7A
#1F2A7A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.135 H 270.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A7A |
|---|---|
| RGB | rgb(31, 42, 122) |
| HSL | hsl(233, 59%, 30%) |
| HSV | hsv(233, 75%, 48%) |
| CMYK | cmyk(74.6%, 65.6%, 0%, 52.2%) |
| CIE-LAB | lab(21.40, 24.94, -46.88) |
| CIE-LCH | lch(21.40, 53.10, 298.01°) |
| OKLab | oklab(33.23% 0.0021 -0.1354) |
| OKLCH | oklch(33.23% 0.135 270.9) |
| XYZ | xyz(4.9047, 3.3519, 18.7971) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.86
Royal
#0C1793
ΔE00 6.74
Marine
#042E60
ΔE00 6.88
Darkslateblue
#483D8B
ΔE00 7.62
Sapphire (survey)
#2138AB
ΔE00 7.79
Blueberry
#464196
ΔE00 8.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A7A #7A6F1F
analogous
#1F587A #1F2A7A #411F7A
triadic
#1F2A7A #7A1F2A #2A7A1F
tetradic
#1F2A7A #7A1F58 #7A6F1F #1F7A41
square
#1F2A7A #7A1F58 #7A6F1F #1F7A41
split-complementary
#1F2A7A #7A411F #587A1F
monochromatic
#060818 #131949 #1F2A7A #2B3BAB #4455CF
Accessibility & contrast
On white
12.57
#1F2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1F2A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A7A
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A7A | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f2a7a; /* rgb */ color: rgb(31, 42, 122); /* oklch */ color: oklch(33.2% 0.135 270.9);
Tailwind
colors: {
custom: {
50: '#6963a1',
500: '#1f2a7a',
950: '#000000',
},
}SCSS
$custom: #1f2a7a; $custom-light: #6963a1; $custom-dark: #000000;
JSON
{
"hex": "#1f2a7a",
"rgb": {
"r": 31,
"g": 42,
"b": 122
},
"hsl": {
"h": 232.747,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.33233,
"c": 0.13543,
"h": 270.9
},
"luminance": 0.03352
}Semantic roles & 50–950 ramp
primary
#1F2A7A
secondary
#ADA147
accent
#D045E3
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F