#1F4EA7#1F4EA7
#1F4EA7 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.153 H 261.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4EA7 |
|---|---|
| RGB | rgb(31, 78, 167) |
| HSL | hsl(219, 69%, 39%) |
| HSV | hsv(219, 81%, 65%) |
| CMYK | cmyk(81.4%, 53.3%, 0%, 34.5%) |
| CIE-LAB | lab(35.06, 18.00, -52.35) |
| CIE-LCH | lch(35.06, 55.36, 288.97°) |
| OKLab | oklab(44.63% -0.0223 -0.1509) |
| OKLCH | oklch(44.63% 0.153 261.6) |
| XYZ | xyz(10.2620, 8.5289, 37.6571) |
| Luminance | 0.0853 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.38
Sapphire
#0F52BA
ΔE00 2.63
Cobalt (survey)
#1E488F
ΔE00 3.54
Dusk Blue
#26538D
ΔE00 4.08
Denim Blue
#3B5B92
ΔE00 5.32
Light Navy
#155084
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4EA7 #A7781F
analogous
#1F92A7 #1F4EA7 #341FA7
triadic
#1F4EA7 #A71F4E #4EA71F
tetradic
#1F4EA7 #A71F92 #A7781F #1FA734
square
#1F4EA7 #A71F92 #A7781F #1FA734
split-complementary
#1F4EA7 #A7341F #92A71F
monochromatic
#0C1E40 #153673 #1F4EA7 #2B67D8 #5F8CE1
Accessibility & contrast
On white
7.76
#1F4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#1F4EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4EA7
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4EA7 | 1.00 | 7.76 | 2.71 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A59AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #1f4ea7; /* rgb */ color: rgb(31, 78, 167); /* oklch */ color: oklch(44.6% 0.153 261.6);
Tailwind
colors: {
custom: {
50: '#727ec2',
500: '#1f4ea7',
950: '#000000',
},
}SCSS
$custom: #1f4ea7; $custom-light: #727ec2; $custom-dark: #000000;
JSON
{
"hex": "#1f4ea7",
"rgb": {
"r": 31,
"g": 78,
"b": 167
},
"hsl": {
"h": 219.265,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.44632,
"c": 0.15256,
"h": 261.6
},
"luminance": 0.0853
}Semantic roles & 50–950 ramp
primary
#1F4EA7
secondary
#C6A15C
accent
#AF3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81