#1F2E81#1F2E81
#1F2E81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.140 H 269.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E81 |
|---|---|
| RGB | rgb(31, 46, 129) |
| HSL | hsl(231, 61%, 31%) |
| HSV | hsv(231, 76%, 51%) |
| CMYK | cmyk(76%, 64.3%, 0%, 49.4%) |
| CIE-LAB | lab(23.10, 24.90, -48.53) |
| CIE-LCH | lch(23.10, 54.54, 297.16°) |
| OKLab | oklab(34.68% -0.0011 -0.1402) |
| OKLCH | oklch(34.68% 0.14 269.6) |
| XYZ | xyz(5.5032, 3.8297, 21.2138) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.16
Sapphire (survey)
#2138AB
ΔE00 6.46
Marine
#042E60
ΔE00 6.94
Darkslateblue
#483D8B
ΔE00 6.99
Royal
#0C1793
ΔE00 7.04
Blueberry
#464196
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E81 #81721F
analogous
#1F5F81 #1F2E81 #411F81
triadic
#1F2E81 #811F2E #2E811F
tetradic
#1F2E81 #811F5F #81721F #1F8141
square
#1F2E81 #811F5F #81721F #1F8141
split-complementary
#1F2E81 #81411F #5F811F
monochromatic
#070B1E #131C50 #1F2E81 #2B40B2 #475DD3
Accessibility & contrast
On white
11.89
#1F2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F2E81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E81
11.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E81 | 1.00 | 11.89 | 1.77 | 11.89 |
| #FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2e81; /* rgb */ color: rgb(31, 46, 129); /* oklch */ color: oklch(34.7% 0.140 269.6);
Tailwind
colors: {
custom: {
50: '#6a66a6',
500: '#1f2e81',
950: '#000000',
},
}SCSS
$custom: #1f2e81; $custom-light: #6a66a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2e81",
"rgb": {
"r": 31,
"g": 46,
"b": 129
},
"hsl": {
"h": 230.816,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.34682,
"c": 0.14021,
"h": 269.6
},
"luminance": 0.0383
}Semantic roles & 50–950 ramp
primary
#1F2E81
secondary
#B4A348
accent
#CC43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F