#1F3891#1F3891
#1F3891 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.150 H 266.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3891 |
|---|---|
| RGB | rgb(31, 56, 145) |
| HSL | hsl(227, 65%, 35%) |
| HSV | hsv(227, 79%, 57%) |
| CMYK | cmyk(78.6%, 61.4%, 0%, 43.1%) |
| CIE-LAB | lab(27.19, 24.28, -51.80) |
| CIE-LCH | lch(27.19, 57.21, 295.11°) |
| OKLab | oklab(38.16% -0.0082 -0.1497) |
| OKLCH | oklch(38.16% 0.15 266.9) |
| XYZ | xyz(7.0883, 5.1632, 27.4056) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.97
Blueberry
#464196
ΔE00 5.74
Cobalt (survey)
#1E488F
ΔE00 5.94
Cobalt
#0047AB
ΔE00 6.03
Darkish Blue
#014182
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3891 #91781F
analogous
#1F7191 #1F3891 #3F1F91
triadic
#1F3891 #911F38 #38911F
tetradic
#1F3891 #911F71 #91781F #1F913F
square
#1F3891 #911F71 #91781F #1F913F
split-complementary
#1F3891 #913F1F #71911F
monochromatic
#09112C #14255F #1F3891 #2A4BC3 #516FDA
Accessibility & contrast
On white
10.33
#1F3891 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F3891 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3891
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3891 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3891 | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f3891; /* rgb */ color: rgb(31, 56, 145); /* oklch */ color: oklch(38.2% 0.150 266.9);
Tailwind
colors: {
custom: {
50: '#6e6eb2',
500: '#1f3891',
950: '#000000',
},
}SCSS
$custom: #1f3891; $custom-light: #6e6eb2; $custom-dark: #000000;
JSON
{
"hex": "#1f3891",
"rgb": {
"r": 31,
"g": 56,
"b": 145
},
"hsl": {
"h": 226.842,
"s": 64.773,
"l": 34.51
},
"oklch": {
"l": 0.38157,
"c": 0.14991,
"h": 266.9
},
"luminance": 0.05164
}Semantic roles & 50–950 ramp
primary
#1F3891
secondary
#BDA54F
accent
#C340E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80