#1F4EA1#1F4EA1
#1F4EA1 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.144 H 260.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4EA1 |
|---|---|
| RGB | rgb(31, 78, 161) |
| HSL | hsl(218, 68%, 38%) |
| HSV | hsv(218, 81%, 63%) |
| CMYK | cmyk(80.7%, 51.6%, 0%, 36.9%) |
| CIE-LAB | lab(34.62, 15.61, -49.46) |
| CIE-LCH | lch(34.62, 51.87, 287.52°) |
| OKLab | oklab(44.16% -0.023 -0.1424) |
| OKLCH | oklch(44.16% 0.144 260.8) |
| XYZ | xyz(9.7202, 8.3121, 34.8034) |
| Luminance | 0.0831 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.72
Cobalt (survey)
#1E488F
ΔE00 2.87
Sapphire
#0F52BA
ΔE00 3.28
Dusk Blue
#26538D
ΔE00 3.37
Denim Blue
#3B5B92
ΔE00 5.01
Light Navy
#155084
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4EA1 #A1721F
analogous
#1F8FA1 #1F4EA1 #311FA1
triadic
#1F4EA1 #A11F4E #4EA11F
tetradic
#1F4EA1 #A11F8F #A1721F #1FA131
square
#1F4EA1 #A11F8F #A1721F #1FA131
split-complementary
#1F4EA1 #A1311F #8FA11F
monochromatic
#0B1C3A #15356E #1F4EA1 #2967D4 #5B8BDF
Accessibility & contrast
On white
7.89
#1F4EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#1F4EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4EA1
7.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4EA1 | 1.00 | 7.89 | 2.66 | 7.89 |
| #FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1858A4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #1f4ea1; /* rgb */ color: rgb(31, 78, 161); /* oklch */ color: oklch(44.2% 0.144 260.8);
Tailwind
colors: {
custom: {
50: '#707ebd',
500: '#1f4ea1',
950: '#000000',
},
}SCSS
$custom: #1f4ea1; $custom-light: #707ebd; $custom-dark: #000000;
JSON
{
"hex": "#1f4ea1",
"rgb": {
"r": 31,
"g": 78,
"b": 161
},
"hsl": {
"h": 218.308,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.44161,
"c": 0.14427,
"h": 260.8
},
"luminance": 0.08313
}Semantic roles & 50–950 ramp
primary
#1F4EA1
secondary
#C49D58
accent
#AC3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81