#1F2A7E#1F2A7E
#1F2A7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 270.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A7E |
|---|---|
| RGB | rgb(31, 42, 126) |
| HSL | hsl(233, 61%, 31%) |
| HSV | hsv(233, 75%, 49%) |
| CMYK | cmyk(75.4%, 66.7%, 0%, 50.6%) |
| CIE-LAB | lab(21.77, 26.48, -48.81) |
| CIE-LCH | lch(21.77, 55.53, 298.48°) |
| OKLab | oklab(33.62% 0.0019 -0.1411) |
| OKLCH | oklch(33.62% 0.141 270.8) |
| XYZ | xyz(5.1577, 3.4531, 20.1293) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.89
Royal
#0C1793
ΔE00 6.22
Sapphire (survey)
#2138AB
ΔE00 7.24
Marine
#042E60
ΔE00 7.36
Darkslateblue
#483D8B
ΔE00 7.49
Blueberry
#464196
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A7E #7E731F
analogous
#1F597E #1F2A7E #431F7E
triadic
#1F2A7E #7E1F2A #2A7E1F
tetradic
#1F2A7E #7E1F59 #7E731F #1F7E43
square
#1F2A7E #7E1F59 #7E731F #1F7E43
split-complementary
#1F2A7E #7E431F #597E1F
monochromatic
#07091C #131A4D #1F2A7E #2B3AAF #4656D1
Accessibility & contrast
On white
12.42
#1F2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#1F2A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A7E
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A7E | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2a7e; /* rgb */ color: rgb(31, 42, 126); /* oklch */ color: oklch(33.6% 0.141 270.8);
Tailwind
colors: {
custom: {
50: '#6a63a4',
500: '#1f2a7e',
950: '#000000',
},
}SCSS
$custom: #1f2a7e; $custom-light: #6a63a4; $custom-dark: #000000;
JSON
{
"hex": "#1f2a7e",
"rgb": {
"r": 31,
"g": 42,
"b": 126
},
"hsl": {
"h": 233.053,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.33621,
"c": 0.14107,
"h": 270.8
},
"luminance": 0.03454
}Semantic roles & 50–950 ramp
primary
#1F2A7E
secondary
#B1A548
accent
#D144E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F