#1F3E9E#1F3E9E
#1F3E9E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.160 H 265.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E9E |
|---|---|
| RGB | rgb(31, 62, 158) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 62%) |
| CMYK | cmyk(80.4%, 60.8%, 0%, 38%) |
| CIE-LAB | lab(29.92, 25.28, -55.29) |
| CIE-LCH | lch(29.92, 60.80, 294.57°) |
| OKLab | oklab(40.53% -0.0119 -0.1598) |
| OKLCH | oklch(40.53% 0.16 265.7) |
| XYZ | xyz(8.4571, 6.2042, 33.0929) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.11
Cobalt
#0047AB
ΔE00 3.85
Cobalt (survey)
#1E488F
ΔE00 4.86
Blueberry
#464196
ΔE00 5.59
Blue Blue
#2242C7
ΔE00 5.79
Darkish Blue
#014182
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E9E #9E7F1F
analogous
#1F7E9E #1F3E9E #3F1F9E
triadic
#1F3E9E #9E1F3E #3E9E1F
tetradic
#1F3E9E #9E1F7E #9E7F1F #1F9E3F
square
#1F3E9E #9E1F7E #9E7F1F #1F9E3F
split-complementary
#1F3E9E #9E3F1F #7E9E1F
monochromatic
#0B1638 #152A6B #1F3E9E #2952D1 #597ADE
Accessibility & contrast
On white
9.37
#1F3E9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#1F3E9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E9E
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E9E | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3e9e; /* rgb */ color: rgb(31, 62, 158); /* oklch */ color: oklch(40.5% 0.160 265.7);
Tailwind
colors: {
custom: {
50: '#7172bb',
500: '#1f3e9e',
950: '#000000',
},
}SCSS
$custom: #1f3e9e; $custom-light: #7172bb; $custom-dark: #000000;
JSON
{
"hex": "#1f3e9e",
"rgb": {
"r": 31,
"g": 62,
"b": 158
},
"hsl": {
"h": 225.354,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.40535,
"c": 0.16029,
"h": 265.7
},
"luminance": 0.06205
}Semantic roles & 50–950 ramp
primary
#1F3E9E
secondary
#C2A856
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81