#1F3D9E#1F3D9E
#1F3D9E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.162 H 266.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D9E |
|---|---|
| RGB | rgb(31, 61, 158) |
| HSL | hsl(226, 67%, 37%) |
| HSV | hsv(226, 80%, 62%) |
| CMYK | cmyk(80.4%, 61.4%, 0%, 38%) |
| CIE-LAB | lab(29.65, 25.96, -55.73) |
| CIE-LCH | lch(29.65, 61.48, 294.97°) |
| OKLab | oklab(40.34% -0.0113 -0.1611) |
| OKLCH | oklch(40.34% 0.162 266) |
| XYZ | xyz(8.4032, 6.0964, 33.0750) |
| Luminance | 0.0610 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.85
Cobalt
#0047AB
ΔE00 4.15
Cobalt (survey)
#1E488F
ΔE00 5.17
Blueberry
#464196
ΔE00 5.53
Blue Blue
#2242C7
ΔE00 5.81
Darkish Blue
#014182
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D9E #9E801F
analogous
#1F7D9E #1F3D9E #411F9E
triadic
#1F3D9E #9E1F3D #3D9E1F
tetradic
#1F3D9E #9E1F7D #9E801F #1F9E41
square
#1F3D9E #9E1F7D #9E801F #1F9E41
split-complementary
#1F3D9E #9E411F #7D9E1F
monochromatic
#0B1538 #15296B #1F3D9E #2951D1 #5978DE
Accessibility & contrast
On white
9.46
#1F3D9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#1F3D9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D9E
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D9E | 1.00 | 9.46 | 2.22 | 9.46 |
| #FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3d9e; /* rgb */ color: rgb(31, 61, 158); /* oklch */ color: oklch(40.3% 0.162 266.0);
Tailwind
colors: {
custom: {
50: '#7172bb',
500: '#1f3d9e',
950: '#000000',
},
}SCSS
$custom: #1f3d9e; $custom-light: #7172bb; $custom-dark: #000000;
JSON
{
"hex": "#1f3d9e",
"rgb": {
"r": 31,
"g": 61,
"b": 158
},
"hsl": {
"h": 225.827,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.40335,
"c": 0.16154,
"h": 266
},
"luminance": 0.06097
}Semantic roles & 50–950 ramp
primary
#1F3D9E
secondary
#C2A956
accent
#C13EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81