#1F3B9E#1F3B9E
#1F3B9E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.164 H 266.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3B9E |
|---|---|
| RGB | rgb(31, 59, 158) |
| HSL | hsl(227, 67%, 37%) |
| HSV | hsv(227, 80%, 62%) |
| CMYK | cmyk(80.4%, 62.7%, 0%, 38%) |
| CIE-LAB | lab(29.13, 27.31, -56.59) |
| CIE-LCH | lch(29.13, 62.84, 295.76°) |
| OKLab | oklab(39.94% -0.0101 -0.1637) |
| OKLCH | oklch(39.94% 0.164 266.5) |
| XYZ | xyz(8.2984, 5.8869, 33.0400) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.40
Cobalt
#0047AB
ΔE00 4.74
Blueberry
#464196
ΔE00 5.49
Cobalt (survey)
#1E488F
ΔE00 5.79
Blue Blue
#2242C7
ΔE00 5.88
Darkish Blue
#014182
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3B9E #9E821F
analogous
#1F7A9E #1F3B9E #431F9E
triadic
#1F3B9E #9E1F3B #3B9E1F
tetradic
#1F3B9E #9E1F7A #9E821F #1F9E43
square
#1F3B9E #9E1F7A #9E821F #1F9E43
split-complementary
#1F3B9E #9E431F #7A9E1F
monochromatic
#0B1538 #15286B #1F3B9E #294ED1 #5976DE
Accessibility & contrast
On white
9.64
#1F3B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F3B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3B9E
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3B9E | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3b9e; /* rgb */ color: rgb(31, 59, 158); /* oklch */ color: oklch(39.9% 0.164 266.5);
Tailwind
colors: {
custom: {
50: '#7170bc',
500: '#1f3b9e',
950: '#000000',
},
}SCSS
$custom: #1f3b9e; $custom-light: #7170bc; $custom-dark: #000000;
JSON
{
"hex": "#1f3b9e",
"rgb": {
"r": 31,
"g": 59,
"b": 158
},
"hsl": {
"h": 226.772,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.39942,
"c": 0.16401,
"h": 266.5
},
"luminance": 0.05888
}Semantic roles & 50–950 ramp
primary
#1F3B9E
secondary
#C2AB56
accent
#C43EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81