#1F3A9B#1F3A9B
#1F3A9B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.161 H 266.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3A9B |
|---|---|
| RGB | rgb(31, 58, 155) |
| HSL | hsl(227, 67%, 36%) |
| HSV | hsv(227, 80%, 61%) |
| CMYK | cmyk(80%, 62.6%, 0%, 39.2%) |
| CIE-LAB | lab(28.60, 26.82, -55.63) |
| CIE-LCH | lch(28.60, 61.76, 295.74°) |
| OKLab | oklab(39.47% -0.0094 -0.1609) |
| OKLCH | oklch(39.47% 0.161 266.6) |
| XYZ | xyz(7.9925, 5.6831, 31.6797) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.66
Cobalt
#0047AB
ΔE00 5.09
Blueberry
#464196
ΔE00 5.50
Cobalt (survey)
#1E488F
ΔE00 5.88
Blue Blue
#2242C7
ΔE00 6.35
Darkish Blue
#014182
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3A9B #9B801F
analogous
#1F789B #1F3A9B #421F9B
triadic
#1F3A9B #9B1F3A #3A9B1F
tetradic
#1F3A9B #9B1F78 #9B801F #1F9B42
square
#1F3A9B #9B1F78 #9B801F #1F9B42
split-complementary
#1F3A9B #9B421F #789B1F
monochromatic
#0B1435 #152768 #1F3A9B #294DCE #5774DD
Accessibility & contrast
On white
9.83
#1F3A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#1F3A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3A9B
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3A9B | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3a9b; /* rgb */ color: rgb(31, 58, 155); /* oklch */ color: oklch(39.5% 0.161 266.6);
Tailwind
colors: {
custom: {
50: '#706fb9',
500: '#1f3a9b',
950: '#000000',
},
}SCSS
$custom: #1f3a9b; $custom-light: #706fb9; $custom-dark: #000000;
JSON
{
"hex": "#1f3a9b",
"rgb": {
"r": 31,
"g": 58,
"b": 155
},
"hsl": {
"h": 226.935,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.3947,
"c": 0.16118,
"h": 266.6
},
"luminance": 0.05684
}Semantic roles & 50–950 ramp
primary
#1F3A9B
secondary
#C1A955
accent
#C43EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81