#1F2E8B#1F2E8B
#1F2E8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.154 H 269.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E8B |
|---|---|
| RGB | rgb(31, 46, 139) |
| HSL | hsl(232, 64%, 33%) |
| HSV | hsv(232, 78%, 55%) |
| CMYK | cmyk(77.7%, 66.9%, 0%, 45.5%) |
| CIE-LAB | lab(24.03, 28.75, -53.27) |
| CIE-LCH | lch(24.03, 60.53, 298.35°) |
| OKLab | oklab(35.65% -0.0015 -0.1541) |
| OKLCH | oklch(35.65% 0.154 269.4) |
| XYZ | xyz(6.2007, 4.1087, 24.8874) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.11
Royal
#0C1793
ΔE00 6.14
Midnight Blue
#191970
ΔE00 6.56
Darkslateblue
#483D8B
ΔE00 6.88
Blueberry
#464196
ΔE00 6.92
Marine
#042E60
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E8B #8B7C1F
analogous
#1F648B #1F2E8B #461F8B
triadic
#1F2E8B #8B1F2E #2E8B1F
tetradic
#1F2E8B #8B1F64 #8B7C1F #1F8B46
square
#1F2E8B #8B1F64 #8B7C1F #1F8B46
split-complementary
#1F2E8B #8B461F #648B1F
monochromatic
#090D27 #141D59 #1F2E8B #2A3FBD #4D60D7
Accessibility & contrast
On white
11.53
#1F2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2E8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E8B
11.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E8B | 1.00 | 11.53 | 1.82 | 11.53 |
| #FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2e8b; /* rgb */ color: rgb(31, 46, 139); /* oklch */ color: oklch(35.6% 0.154 269.4);
Tailwind
colors: {
custom: {
50: '#6d66ae',
500: '#1f2e8b',
950: '#000000',
},
}SCSS
$custom: #1f2e8b; $custom-light: #6d66ae; $custom-dark: #000000;
JSON
{
"hex": "#1f2e8b",
"rgb": {
"r": 31,
"g": 46,
"b": 139
},
"hsl": {
"h": 231.667,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.3565,
"c": 0.15411,
"h": 269.4
},
"luminance": 0.04109
}Semantic roles & 50–950 ramp
primary
#1F2E8B
secondary
#BAAB4C
accent
#D041E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F