#1F4EA6#1F4EA6
#1F4EA6 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.151 H 261.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4EA6 |
|---|---|
| RGB | rgb(31, 78, 166) |
| HSL | hsl(219, 69%, 39%) |
| HSV | hsv(219, 81%, 65%) |
| CMYK | cmyk(81.3%, 53%, 0%, 34.9%) |
| CIE-LAB | lab(34.99, 17.60, -51.87) |
| CIE-LCH | lch(34.99, 54.78, 288.74°) |
| OKLab | oklab(44.55% -0.0224 -0.1495) |
| OKLCH | oklch(44.55% 0.151 261.5) |
| XYZ | xyz(10.1699, 8.4920, 37.1721) |
| Luminance | 0.0849 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.42
Sapphire
#0F52BA
ΔE00 2.73
Cobalt (survey)
#1E488F
ΔE00 3.42
Dusk Blue
#26538D
ΔE00 3.96
Denim Blue
#3B5B92
ΔE00 5.26
Light Navy
#155084
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4EA6 #A6771F
analogous
#1F91A6 #1F4EA6 #331FA6
triadic
#1F4EA6 #A61F4E #4EA61F
tetradic
#1F4EA6 #A61F91 #A6771F #1FA633
square
#1F4EA6 #A61F91 #A6771F #1FA633
split-complementary
#1F4EA6 #A6331F #91A61F
monochromatic
#0C1E3F #153672 #1F4EA6 #2B67D7 #5E8CE1
Accessibility & contrast
On white
7.78
#1F4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#1F4EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4EA6
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4EA6 | 1.00 | 7.78 | 2.70 | 7.78 |
| #FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D59A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #1f4ea6; /* rgb */ color: rgb(31, 78, 166); /* oklch */ color: oklch(44.6% 0.151 261.5);
Tailwind
colors: {
custom: {
50: '#727ec1',
500: '#1f4ea6',
950: '#000000',
},
}SCSS
$custom: #1f4ea6; $custom-light: #727ec1; $custom-dark: #000000;
JSON
{
"hex": "#1f4ea6",
"rgb": {
"r": 31,
"g": 78,
"b": 166
},
"hsl": {
"h": 219.111,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.44552,
"c": 0.15118,
"h": 261.5
},
"luminance": 0.08493
}Semantic roles & 50–950 ramp
primary
#1F4EA6
secondary
#C5A15B
accent
#AE3CEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81