#1F2F81#1F2F81
#1F2F81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.139 H 269.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F81 |
|---|---|
| RGB | rgb(31, 47, 129) |
| HSL | hsl(230, 61%, 31%) |
| HSV | hsv(230, 76%, 51%) |
| CMYK | cmyk(76%, 63.6%, 0%, 49.4%) |
| CIE-LAB | lab(23.37, 24.21, -48.09) |
| CIE-LCH | lch(23.37, 53.84, 296.72°) |
| OKLab | oklab(34.88% -0.0018 -0.1389) |
| OKLCH | oklch(34.88% 0.139 269.3) |
| XYZ | xyz(5.5427, 3.9087, 21.2270) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 6.40
Midnight Blue
#191970
ΔE00 6.47
Marine
#042E60
ΔE00 6.77
Darkslateblue
#483D8B
ΔE00 6.92
Blueberry
#464196
ΔE00 7.23
Royal
#0C1793
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F81 #81711F
analogous
#1F6081 #1F2F81 #401F81
triadic
#1F2F81 #811F2F #2F811F
tetradic
#1F2F81 #811F60 #81711F #1F8140
square
#1F2F81 #811F60 #81711F #1F8140
split-complementary
#1F2F81 #81401F #60811F
monochromatic
#070B1E #131D50 #1F2F81 #2B41B2 #475ED3
Accessibility & contrast
On white
11.79
#1F2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#1F2F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F81
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F81 | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2f81; /* rgb */ color: rgb(31, 47, 129); /* oklch */ color: oklch(34.9% 0.139 269.3);
Tailwind
colors: {
custom: {
50: '#6a67a6',
500: '#1f2f81',
950: '#000000',
},
}SCSS
$custom: #1f2f81; $custom-light: #6a67a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2f81",
"rgb": {
"r": 31,
"g": 47,
"b": 129
},
"hsl": {
"h": 230.204,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.3488,
"c": 0.13893,
"h": 269.3
},
"luminance": 0.03909
}Semantic roles & 50–950 ramp
primary
#1F2F81
secondary
#B4A248
accent
#CA43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F