#1F3791#1F3791
#1F3791 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.151 H 267.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3791 |
|---|---|
| RGB | rgb(31, 55, 145) |
| HSL | hsl(227, 65%, 35%) |
| HSV | hsv(227, 79%, 57%) |
| CMYK | cmyk(78.6%, 62.1%, 0%, 43.1%) |
| CIE-LAB | lab(26.93, 24.96, -52.24) |
| CIE-LCH | lch(26.93, 57.90, 295.54°) |
| OKLab | oklab(37.96% -0.0075 -0.151) |
| OKLCH | oklch(37.96% 0.151 267.1) |
| XYZ | xyz(7.0403, 5.0672, 27.3896) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.89
Blueberry
#464196
ΔE00 5.77
Cobalt (survey)
#1E488F
ΔE00 6.28
Cobalt
#0047AB
ΔE00 6.30
Darkslateblue
#483D8B
ΔE00 6.51
Darkish Blue
#014182
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3791 #91791F
analogous
#1F7091 #1F3791 #401F91
triadic
#1F3791 #911F37 #37911F
tetradic
#1F3791 #911F70 #91791F #1F9140
square
#1F3791 #911F70 #91791F #1F9140
split-complementary
#1F3791 #91401F #70911F
monochromatic
#09112C #14245F #1F3791 #2A4AC3 #516EDA
Accessibility & contrast
On white
10.43
#1F3791 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F3791 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3791
10.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3791 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3791 | 1.00 | 10.43 | 2.01 | 10.43 |
| #FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f3791; /* rgb */ color: rgb(31, 55, 145); /* oklch */ color: oklch(38.0% 0.151 267.1);
Tailwind
colors: {
custom: {
50: '#6e6db2',
500: '#1f3791',
950: '#000000',
},
}SCSS
$custom: #1f3791; $custom-light: #6e6db2; $custom-dark: #000000;
JSON
{
"hex": "#1f3791",
"rgb": {
"r": 31,
"g": 55,
"b": 145
},
"hsl": {
"h": 227.368,
"s": 64.773,
"l": 34.51
},
"oklch": {
"l": 0.37956,
"c": 0.15118,
"h": 267.1
},
"luminance": 0.05068
}Semantic roles & 50–950 ramp
primary
#1F3791
secondary
#BDA64F
accent
#C440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80