#1F4EA8#1F4EA8
#1F4EA8 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.154 H 261.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4EA8 |
|---|---|
| RGB | rgb(31, 78, 168) |
| HSL | hsl(219, 69%, 39%) |
| HSV | hsv(219, 82%, 66%) |
| CMYK | cmyk(81.5%, 53.6%, 0%, 34.1%) |
| CIE-LAB | lab(35.13, 18.39, -52.83) |
| CIE-LCH | lch(35.13, 55.94, 289.20°) |
| OKLab | oklab(44.71% -0.0222 -0.1523) |
| OKLCH | oklch(44.71% 0.154 261.7) |
| XYZ | xyz(10.3548, 8.5660, 38.1459) |
| Luminance | 0.0857 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.35
Sapphire
#0F52BA
ΔE00 2.53
Cobalt (survey)
#1E488F
ΔE00 3.66
Dusk Blue
#26538D
ΔE00 4.20
Denim Blue
#3B5B92
ΔE00 5.38
Light Navy
#155084
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4EA8 #A8791F
analogous
#1F93A8 #1F4EA8 #351FA8
triadic
#1F4EA8 #A81F4E #4EA81F
tetradic
#1F4EA8 #A81F93 #A8791F #1FA835
square
#1F4EA8 #A81F93 #A8791F #1FA835
split-complementary
#1F4EA8 #A8351F #93A81F
monochromatic
#0C1E41 #153674 #1F4EA8 #2C67D8 #608CE2
Accessibility & contrast
On white
7.74
#1F4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#1F4EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4EA8
7.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4EA8 | 1.00 | 7.74 | 2.71 | 7.74 |
| #FFFFFF | 7.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0759AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #1f4ea8; /* rgb */ color: rgb(31, 78, 168); /* oklch */ color: oklch(44.7% 0.154 261.7);
Tailwind
colors: {
custom: {
50: '#727ec2',
500: '#1f4ea8',
950: '#000000',
},
}SCSS
$custom: #1f4ea8; $custom-light: #727ec2; $custom-dark: #000000;
JSON
{
"hex": "#1f4ea8",
"rgb": {
"r": 31,
"g": 78,
"b": 168
},
"hsl": {
"h": 219.416,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.44711,
"c": 0.15392,
"h": 261.7
},
"luminance": 0.08567
}Semantic roles & 50–950 ramp
primary
#1F4EA8
secondary
#C6A25D
accent
#AF3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81