#1F2F8A#1F2F8A
#1F2F8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.151 H 269.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F8A |
|---|---|
| RGB | rgb(31, 47, 138) |
| HSL | hsl(231, 63%, 33%) |
| HSV | hsv(231, 78%, 54%) |
| CMYK | cmyk(77.5%, 65.9%, 0%, 45.9%) |
| CIE-LAB | lab(24.19, 27.69, -52.38) |
| CIE-LCH | lch(24.19, 59.25, 297.86°) |
| OKLab | oklab(35.74% -0.0021 -0.1515) |
| OKLCH | oklch(35.74% 0.152 269.2) |
| XYZ | xyz(6.1675, 4.1586, 24.5175) |
| Luminance | 0.0416 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.13
Royal
#0C1793
ΔE00 6.52
Midnight Blue
#191970
ΔE00 6.76
Darkslateblue
#483D8B
ΔE00 6.78
Blueberry
#464196
ΔE00 6.80
Marine
#042E60
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F8A #8A7A1F
analogous
#1F648A #1F2F8A #441F8A
triadic
#1F2F8A #8A1F2F #2F8A1F
tetradic
#1F2F8A #8A1F64 #8A7A1F #1F8A44
square
#1F2F8A #8A1F64 #8A7A1F #1F8A44
split-complementary
#1F2F8A #8A441F #648A1F
monochromatic
#090D26 #141E58 #1F2F8A #2A40BC #4C61D7
Accessibility & contrast
On white
11.46
#1F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#1F2F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F8A
11.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F8A | 1.00 | 11.46 | 1.83 | 11.46 |
| #FFFFFF | 11.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2f8a; /* rgb */ color: rgb(31, 47, 138); /* oklch */ color: oklch(35.7% 0.151 269.2);
Tailwind
colors: {
custom: {
50: '#6d67ad',
500: '#1f2f8a',
950: '#000000',
},
}SCSS
$custom: #1f2f8a; $custom-light: #6d67ad; $custom-dark: #000000;
JSON
{
"hex": "#1f2f8a",
"rgb": {
"r": 31,
"g": 47,
"b": 138
},
"hsl": {
"h": 231.028,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35739,
"c": 0.1515,
"h": 269.2
},
"luminance": 0.04159
}Semantic roles & 50–950 ramp
primary
#1F2F8A
secondary
#BAA94B
accent
#CE41E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F