#1F2F87#1F2F87
#1F2F87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.147 H 269.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F87 |
|---|---|
| RGB | rgb(31, 47, 135) |
| HSL | hsl(231, 63%, 33%) |
| HSV | hsv(231, 77%, 53%) |
| CMYK | cmyk(77%, 65.2%, 0%, 47.1%) |
| CIE-LAB | lab(23.91, 26.54, -50.97) |
| CIE-LCH | lch(23.91, 57.46, 297.50°) |
| OKLab | oklab(35.45% -0.002 -0.1473) |
| OKLCH | oklch(35.45% 0.147 269.2) |
| XYZ | xyz(5.9533, 4.0730, 23.3894) |
| Luminance | 0.0407 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.54
Midnight Blue
#191970
ΔE00 6.62
Royal
#0C1793
ΔE00 6.76
Darkslateblue
#483D8B
ΔE00 6.79
Blueberry
#464196
ΔE00 6.91
Marine
#042E60
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F87 #87771F
analogous
#1F6387 #1F2F87 #431F87
triadic
#1F2F87 #871F2F #2F871F
tetradic
#1F2F87 #871F63 #87771F #1F8743
square
#1F2F87 #871F63 #87771F #1F8743
split-complementary
#1F2F87 #87431F #63871F
monochromatic
#080C23 #141E55 #1F2F87 #2A40B9 #4B60D6
Accessibility & contrast
On white
11.57
#1F2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#1F2F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F87
11.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F87 | 1.00 | 11.57 | 1.81 | 11.57 |
| #FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2f87; /* rgb */ color: rgb(31, 47, 135); /* oklch */ color: oklch(35.4% 0.147 269.2);
Tailwind
colors: {
custom: {
50: '#6c67ab',
500: '#1f2f87',
950: '#000000',
},
}SCSS
$custom: #1f2f87; $custom-light: #6c67ab; $custom-dark: #000000;
JSON
{
"hex": "#1f2f87",
"rgb": {
"r": 31,
"g": 47,
"b": 135
},
"hsl": {
"h": 230.769,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.35449,
"c": 0.14736,
"h": 269.2
},
"luminance": 0.04074
}Semantic roles & 50–950 ramp
primary
#1F2F87
secondary
#B8A74A
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F