#1F2E87#1F2E87
#1F2E87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.149 H 269.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E87 |
|---|---|
| RGB | rgb(31, 46, 135) |
| HSL | hsl(231, 63%, 33%) |
| HSV | hsv(231, 77%, 53%) |
| CMYK | cmyk(77%, 65.9%, 0%, 47.1%) |
| CIE-LAB | lab(23.65, 27.22, -51.39) |
| CIE-LCH | lch(23.65, 58.15, 297.90°) |
| OKLab | oklab(35.26% -0.0013 -0.1486) |
| OKLCH | oklch(35.26% 0.149 269.5) |
| XYZ | xyz(5.9137, 3.9939, 23.3762) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.63
Midnight Blue
#191970
ΔE00 6.34
Royal
#0C1793
ΔE00 6.45
Darkslateblue
#483D8B
ΔE00 6.88
Blueberry
#464196
ΔE00 7.05
Marine
#042E60
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E87 #87781F
analogous
#1F6287 #1F2E87 #441F87
triadic
#1F2E87 #871F2E #2E871F
tetradic
#1F2E87 #871F62 #87781F #1F8744
square
#1F2E87 #871F62 #87781F #1F8744
split-complementary
#1F2E87 #87441F #62871F
monochromatic
#080C23 #141D55 #1F2E87 #2A3FB9 #4B5FD6
Accessibility & contrast
On white
11.67
#1F2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F2E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E87
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E87 | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2e87; /* rgb */ color: rgb(31, 46, 135); /* oklch */ color: oklch(35.3% 0.149 269.5);
Tailwind
colors: {
custom: {
50: '#6c66ab',
500: '#1f2e87',
950: '#000000',
},
}SCSS
$custom: #1f2e87; $custom-light: #6c66ab; $custom-dark: #000000;
JSON
{
"hex": "#1f2e87",
"rgb": {
"r": 31,
"g": 46,
"b": 135
},
"hsl": {
"h": 231.346,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.35258,
"c": 0.14861,
"h": 269.5
},
"luminance": 0.03995
}Semantic roles & 50–950 ramp
primary
#1F2E87
secondary
#B8A84A
accent
#CE42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F