#1F3E9D#1F3E9D
#1F3E9D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.159 H 265.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E9D |
|---|---|
| RGB | rgb(31, 62, 157) |
| HSL | hsl(225, 67%, 37%) |
| HSV | hsv(225, 80%, 62%) |
| CMYK | cmyk(80.3%, 60.5%, 0%, 38.4%) |
| CIE-LAB | lab(29.84, 24.89, -54.83) |
| CIE-LCH | lch(29.84, 60.21, 294.42°) |
| OKLab | oklab(40.45% -0.012 -0.1585) |
| OKLCH | oklch(40.45% 0.159 265.7) |
| XYZ | xyz(8.3714, 6.1699, 32.6415) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.24
Cobalt
#0047AB
ΔE00 3.88
Cobalt (survey)
#1E488F
ΔE00 4.76
Blueberry
#464196
ΔE00 5.60
Blue Blue
#2242C7
ΔE00 5.94
Darkish Blue
#014182
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E9D #9D7E1F
analogous
#1F7D9D #1F3E9D #3F1F9D
triadic
#1F3E9D #9D1F3E #3E9D1F
tetradic
#1F3E9D #9D1F7D #9D7E1F #1F9D3F
square
#1F3E9D #9D1F7D #9D7E1F #1F9D3F
split-complementary
#1F3E9D #9D3F1F #7D9D1F
monochromatic
#0B1637 #152A6A #1F3E9D #2952D0 #5879DE
Accessibility & contrast
On white
9.40
#1F3E9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#1F3E9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E9D
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E9D | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3e9d; /* rgb */ color: rgb(31, 62, 157); /* oklch */ color: oklch(40.4% 0.159 265.7);
Tailwind
colors: {
custom: {
50: '#7072bb',
500: '#1f3e9d',
950: '#000000',
},
}SCSS
$custom: #1f3e9d; $custom-light: #7072bb; $custom-dark: #000000;
JSON
{
"hex": "#1f3e9d",
"rgb": {
"r": 31,
"g": 62,
"b": 157
},
"hsl": {
"h": 225.238,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.40445,
"c": 0.15892,
"h": 265.7
},
"luminance": 0.06171
}Semantic roles & 50–950 ramp
primary
#1F3E9D
secondary
#C2A756
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81