#1F4EA4#1F4EA4
#1F4EA4 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.148 H 261.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4EA4 |
|---|---|
| RGB | rgb(31, 78, 164) |
| HSL | hsl(219, 68%, 38%) |
| HSV | hsv(219, 81%, 64%) |
| CMYK | cmyk(81.1%, 52.4%, 0%, 35.7%) |
| CIE-LAB | lab(34.84, 16.80, -50.91) |
| CIE-LCH | lch(34.84, 53.61, 288.27°) |
| OKLab | oklab(44.4% -0.0226 -0.1467) |
| OKLCH | oklch(44.4% 0.148 261.2) |
| XYZ | xyz(9.9879, 8.4192, 36.2134) |
| Luminance | 0.0842 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.52
Sapphire
#0F52BA
ΔE00 2.94
Cobalt (survey)
#1E488F
ΔE00 3.19
Dusk Blue
#26538D
ΔE00 3.72
Denim Blue
#3B5B92
ΔE00 5.15
Light Navy
#155084
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4EA4 #A4751F
analogous
#1F90A4 #1F4EA4 #321FA4
triadic
#1F4EA4 #A41F4E #4EA41F
tetradic
#1F4EA4 #A41F90 #A4751F #1FA432
square
#1F4EA4 #A41F90 #A4751F #1FA432
split-complementary
#1F4EA4 #A4321F #90A41F
monochromatic
#0C1D3D #153671 #1F4EA4 #2A67D7 #5D8BE0
Accessibility & contrast
On white
7.82
#1F4EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#1F4EA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4EA4
7.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4EA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4EA4 | 1.00 | 7.82 | 2.68 | 7.82 |
| #FFFFFF | 7.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1258A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #1f4ea4; /* rgb */ color: rgb(31, 78, 164); /* oklch */ color: oklch(44.4% 0.148 261.2);
Tailwind
colors: {
custom: {
50: '#717ec0',
500: '#1f4ea4',
950: '#000000',
},
}SCSS
$custom: #1f4ea4; $custom-light: #717ec0; $custom-dark: #000000;
JSON
{
"hex": "#1f4ea4",
"rgb": {
"r": 31,
"g": 78,
"b": 164
},
"hsl": {
"h": 218.797,
"s": 68.205,
"l": 38.235
},
"oklch": {
"l": 0.44395,
"c": 0.14842,
"h": 261.2
},
"luminance": 0.0842
}Semantic roles & 50–950 ramp
primary
#1F4EA4
secondary
#C59F5A
accent
#AD3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81