#1F2E8A#1F2E8A
#1F2E8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.153 H 269.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E8A |
|---|---|
| RGB | rgb(31, 46, 138) |
| HSL | hsl(232, 63%, 33%) |
| HSV | hsv(232, 78%, 54%) |
| CMYK | cmyk(77.5%, 66.7%, 0%, 45.9%) |
| CIE-LAB | lab(23.93, 28.37, -52.80) |
| CIE-LCH | lch(23.93, 59.94, 298.24°) |
| OKLab | oklab(35.55% -0.0015 -0.1527) |
| OKLCH | oklch(35.55% 0.153 269.4) |
| XYZ | xyz(6.1279, 4.0796, 24.5043) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.24
Royal
#0C1793
ΔE00 6.21
Midnight Blue
#191970
ΔE00 6.50
Darkslateblue
#483D8B
ΔE00 6.88
Blueberry
#464196
ΔE00 6.95
Marine
#042E60
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E8A #8A7B1F
analogous
#1F638A #1F2E8A #451F8A
triadic
#1F2E8A #8A1F2E #2E8A1F
tetradic
#1F2E8A #8A1F63 #8A7B1F #1F8A45
square
#1F2E8A #8A1F63 #8A7B1F #1F8A45
split-complementary
#1F2E8A #8A451F #638A1F
monochromatic
#090D26 #141D58 #1F2E8A #2A3FBC #4C60D7
Accessibility & contrast
On white
11.56
#1F2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E8A
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E8A | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2e8a; /* rgb */ color: rgb(31, 46, 138); /* oklch */ color: oklch(35.6% 0.153 269.4);
Tailwind
colors: {
custom: {
50: '#6d66ad',
500: '#1f2e8a',
950: '#000000',
},
}SCSS
$custom: #1f2e8a; $custom-light: #6d66ad; $custom-dark: #000000;
JSON
{
"hex": "#1f2e8a",
"rgb": {
"r": 31,
"g": 46,
"b": 138
},
"hsl": {
"h": 231.589,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35551,
"c": 0.15274,
"h": 269.4
},
"luminance": 0.0408
}Semantic roles & 50–950 ramp
primary
#1F2E8A
secondary
#BAAA4B
accent
#CF41E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F