#1F2D87#1F2D87
#1F2D87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.150 H 269.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D87 |
|---|---|
| RGB | rgb(31, 45, 135) |
| HSL | hsl(232, 63%, 33%) |
| HSV | hsv(232, 77%, 53%) |
| CMYK | cmyk(77%, 66.7%, 0%, 47.1%) |
| CIE-LAB | lab(23.39, 27.89, -51.81) |
| CIE-LCH | lch(23.39, 58.84, 298.29°) |
| OKLab | oklab(35.07% -0.0007 -0.1498) |
| OKLCH | oklch(35.07% 0.15 269.7) |
| XYZ | xyz(5.8751, 3.9167, 23.3633) |
| Luminance | 0.0392 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.73
Midnight Blue
#191970
ΔE00 6.07
Royal
#0C1793
ΔE00 6.15
Darkslateblue
#483D8B
ΔE00 6.99
Blueberry
#464196
ΔE00 7.21
Marine
#042E60
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D87 #87791F
analogous
#1F6187 #1F2D87 #451F87
triadic
#1F2D87 #871F2D #2D871F
tetradic
#1F2D87 #871F61 #87791F #1F8745
square
#1F2D87 #871F61 #87791F #1F8745
split-complementary
#1F2D87 #87451F #61871F
monochromatic
#080C23 #141C55 #1F2D87 #2A3EB9 #4B5DD6
Accessibility & contrast
On white
11.78
#1F2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#1F2D87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D87
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D87 | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2d87; /* rgb */ color: rgb(31, 45, 135); /* oklch */ color: oklch(35.1% 0.150 269.7);
Tailwind
colors: {
custom: {
50: '#6c66ab',
500: '#1f2d87',
950: '#000000',
},
}SCSS
$custom: #1f2d87; $custom-light: #6c66ab; $custom-dark: #000000;
JSON
{
"hex": "#1f2d87",
"rgb": {
"r": 31,
"g": 45,
"b": 135
},
"hsl": {
"h": 231.923,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.3507,
"c": 0.14984,
"h": 269.7
},
"luminance": 0.03917
}Semantic roles & 50–950 ramp
primary
#1F2D87
secondary
#B8A94A
accent
#D042E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F