#1F3E9B#1F3E9B
#1F3E9B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.156 H 265.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E9B |
|---|---|
| RGB | rgb(31, 62, 155) |
| HSL | hsl(225, 67%, 36%) |
| HSV | hsv(225, 80%, 61%) |
| CMYK | cmyk(80%, 60%, 0%, 39.2%) |
| CIE-LAB | lab(29.67, 24.10, -53.88) |
| CIE-LCH | lch(29.67, 59.03, 294.10°) |
| OKLab | oklab(40.27% -0.012 -0.1557) |
| OKLCH | oklch(40.27% 0.156 265.6) |
| XYZ | xyz(8.2020, 6.1022, 31.7495) |
| Luminance | 0.0610 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.50
Cobalt
#0047AB
ΔE00 3.94
Cobalt (survey)
#1E488F
ΔE00 4.58
Blueberry
#464196
ΔE00 5.62
Darkish Blue
#014182
ΔE00 5.73
Blue Blue
#2242C7
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E9B #9B7C1F
analogous
#1F7C9B #1F3E9B #3E1F9B
triadic
#1F3E9B #9B1F3E #3E9B1F
tetradic
#1F3E9B #9B1F7C #9B7C1F #1F9B3E
square
#1F3E9B #9B1F7C #9B7C1F #1F9B3E
split-complementary
#1F3E9B #9B3E1F #7C9B1F
monochromatic
#0B1535 #152A68 #1F3E9B #2952CE #5779DD
Accessibility & contrast
On white
9.46
#1F3E9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#1F3E9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E9B
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E9B | 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)
#004C9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f3e9b; /* rgb */ color: rgb(31, 62, 155); /* oklch */ color: oklch(40.3% 0.156 265.6);
Tailwind
colors: {
custom: {
50: '#7072b9',
500: '#1f3e9b',
950: '#000000',
},
}SCSS
$custom: #1f3e9b; $custom-light: #7072b9; $custom-dark: #000000;
JSON
{
"hex": "#1f3e9b",
"rgb": {
"r": 31,
"g": 62,
"b": 155
},
"hsl": {
"h": 225,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.40267,
"c": 0.15617,
"h": 265.6
},
"luminance": 0.06103
}Semantic roles & 50–950 ramp
primary
#1F3E9B
secondary
#C1A655
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81