#1F2E8E#1F2E8E
#1F2E8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.158 H 269.4°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E8E |
|---|---|
| RGB | rgb(31, 46, 142) |
| HSL | hsl(232, 64%, 34%) |
| HSV | hsv(232, 78%, 56%) |
| CMYK | cmyk(78.2%, 67.6%, 0%, 44.3%) |
| CIE-LAB | lab(24.31, 29.89, -54.66) |
| CIE-LCH | lch(24.31, 62.30, 298.67°) |
| OKLab | oklab(35.95% -0.0017 -0.1582) |
| OKLCH | oklch(35.95% 0.158 269.4) |
| XYZ | xyz(6.4229, 4.1976, 26.0577) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.74
Royal
#0C1793
ΔE00 5.95
Midnight Blue
#191970
ΔE00 6.76
Blueberry
#464196
ΔE00 6.85
Darkslateblue
#483D8B
ΔE00 6.91
Indigo Blue
#3A18B1
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E8E #8E7F1F
analogous
#1F668E #1F2E8E #481F8E
triadic
#1F2E8E #8E1F2E #2E8E1F
tetradic
#1F2E8E #8E1F66 #8E7F1F #1F8E48
square
#1F2E8E #8E1F66 #8E7F1F #1F8E48
split-complementary
#1F2E8E #8E481F #668E1F
monochromatic
#090D2A #141E5C #1F2E8E #2A3EC0 #4F61D9
Accessibility & contrast
On white
11.42
#1F2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#1F2E8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E8E
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E8E | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2e8e; /* rgb */ color: rgb(31, 46, 142); /* oklch */ color: oklch(35.9% 0.158 269.4);
Tailwind
colors: {
custom: {
50: '#6e66b0',
500: '#1f2e8e',
950: '#000000',
},
}SCSS
$custom: #1f2e8e; $custom-light: #6e66b0; $custom-dark: #000000;
JSON
{
"hex": "#1f2e8e",
"rgb": {
"r": 31,
"g": 46,
"b": 142
},
"hsl": {
"h": 231.892,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.35947,
"c": 0.15818,
"h": 269.4
},
"luminance": 0.04198
}Semantic roles & 50–950 ramp
primary
#1F2E8E
secondary
#BBAD4D
accent
#D141E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80