#1F2A80#1F2A80
#1F2A80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.144 H 270.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A80 |
|---|---|
| RGB | rgb(31, 42, 128) |
| HSL | hsl(233, 61%, 31%) |
| HSV | hsv(233, 76%, 50%) |
| CMYK | cmyk(75.8%, 67.2%, 0%, 49.8%) |
| CIE-LAB | lab(21.96, 27.24, -49.76) |
| CIE-LCH | lch(21.96, 56.73, 298.70°) |
| OKLab | oklab(33.82% 0.0018 -0.1438) |
| OKLCH | oklch(33.82% 0.144 270.7) |
| XYZ | xyz(5.2880, 3.5052, 20.8158) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.95
Royal
#0C1793
ΔE00 5.98
Sapphire (survey)
#2138AB
ΔE00 6.98
Darkslateblue
#483D8B
ΔE00 7.44
Marine
#042E60
ΔE00 7.60
Blueberry
#464196
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A80 #80751F
analogous
#1F5A80 #1F2A80 #441F80
triadic
#1F2A80 #801F2A #2A801F
tetradic
#1F2A80 #801F5A #80751F #1F8044
square
#1F2A80 #801F5A #80751F #1F8044
split-complementary
#1F2A80 #80441F #5A801F
monochromatic
#070A1D #131A4F #1F2A80 #2B3AB1 #4757D2
Accessibility & contrast
On white
12.34
#1F2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2A80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A80
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A80 | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2a80; /* rgb */ color: rgb(31, 42, 128); /* oklch */ color: oklch(33.8% 0.144 270.7);
Tailwind
colors: {
custom: {
50: '#6b63a6',
500: '#1f2a80',
950: '#000000',
},
}SCSS
$custom: #1f2a80; $custom-light: #6b63a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2a80",
"rgb": {
"r": 31,
"g": 42,
"b": 128
},
"hsl": {
"h": 233.196,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.33818,
"c": 0.14386,
"h": 270.7
},
"luminance": 0.03506
}Semantic roles & 50–950 ramp
primary
#1F2A80
secondary
#B3A748
accent
#D244E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F