#1F4FA7#1F4FA7
#1F4FA7 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.151 H 261.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4FA7 |
|---|---|
| RGB | rgb(31, 79, 167) |
| HSL | hsl(219, 69%, 39%) |
| HSV | hsv(219, 81%, 65%) |
| CMYK | cmyk(81.4%, 52.7%, 0%, 34.5%) |
| CIE-LAB | lab(35.35, 17.32, -51.89) |
| CIE-LCH | lch(35.35, 54.71, 288.46°) |
| OKLab | oklab(44.85% -0.023 -0.1495) |
| OKLCH | oklch(44.85% 0.151 261.3) |
| XYZ | xyz(10.3336, 8.6721, 37.6810) |
| Luminance | 0.0867 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.49
Cobalt
#0047AB
ΔE00 2.68
Cobalt (survey)
#1E488F
ΔE00 3.66
Dusk Blue
#26538D
ΔE00 3.86
Denim Blue
#3B5B92
ΔE00 5.07
Light Navy
#155084
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4FA7 #A7771F
analogous
#1F93A7 #1F4FA7 #331FA7
triadic
#1F4FA7 #A71F4F #4FA71F
tetradic
#1F4FA7 #A71F93 #A7771F #1FA733
square
#1F4FA7 #A71F93 #A7771F #1FA733
split-complementary
#1F4FA7 #A7331F #93A71F
monochromatic
#0C1E40 #153773 #1F4FA7 #2B68D8 #5F8DE1
Accessibility & contrast
On white
7.68
#1F4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#1F4FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4FA7
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4FA7 | 1.00 | 7.68 | 2.73 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #1f4fa7; /* rgb */ color: rgb(31, 79, 167); /* oklch */ color: oklch(44.8% 0.151 261.3);
Tailwind
colors: {
custom: {
50: '#727fc2',
500: '#1f4fa7',
950: '#000000',
},
}SCSS
$custom: #1f4fa7; $custom-light: #727fc2; $custom-dark: #000000;
JSON
{
"hex": "#1f4fa7",
"rgb": {
"r": 31,
"g": 79,
"b": 167
},
"hsl": {
"h": 218.824,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.44848,
"c": 0.1513,
"h": 261.3
},
"luminance": 0.08673
}Semantic roles & 50–950 ramp
primary
#1F4FA7
secondary
#C6A05C
accent
#AE3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81