#1F4FA1#1F4FA1
#1F4FA1 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.143 H 260.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4FA1 |
|---|---|
| RGB | rgb(31, 79, 161) |
| HSL | hsl(218, 68%, 38%) |
| HSV | hsv(218, 81%, 63%) |
| CMYK | cmyk(80.7%, 50.9%, 0%, 36.9%) |
| CIE-LAB | lab(34.91, 14.94, -49.00) |
| CIE-LCH | lch(34.91, 51.22, 286.95°) |
| OKLab | oklab(44.38% -0.0238 -0.141) |
| OKLCH | oklch(44.38% 0.143 260.4) |
| XYZ | xyz(9.7917, 8.4553, 34.8273) |
| Luminance | 0.0846 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.02
Cobalt (survey)
#1E488F
ΔE00 3.06
Dusk Blue
#26538D
ΔE00 3.12
Sapphire
#0F52BA
ΔE00 3.18
Denim Blue
#3B5B92
ΔE00 4.76
Light Navy
#155084
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4FA1 #A1711F
analogous
#1F90A1 #1F4FA1 #301FA1
triadic
#1F4FA1 #A11F4F #4FA11F
tetradic
#1F4FA1 #A11F90 #A1711F #1FA130
square
#1F4FA1 #A11F90 #A1711F #1FA130
split-complementary
#1F4FA1 #A1301F #90A11F
monochromatic
#0B1D3A #15366E #1F4FA1 #2968D4 #5B8CDF
Accessibility & contrast
On white
7.80
#1F4FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#1F4FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4FA1
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4FA1 | 1.00 | 7.80 | 2.69 | 7.80 |
| #FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C58A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #1f4fa1; /* rgb */ color: rgb(31, 79, 161); /* oklch */ color: oklch(44.4% 0.143 260.4);
Tailwind
colors: {
custom: {
50: '#707fbd',
500: '#1f4fa1',
950: '#000000',
},
}SCSS
$custom: #1f4fa1; $custom-light: #707fbd; $custom-dark: #000000;
JSON
{
"hex": "#1f4fa1",
"rgb": {
"r": 31,
"g": 79,
"b": 161
},
"hsl": {
"h": 217.846,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.44382,
"c": 0.14301,
"h": 260.4
},
"luminance": 0.08456
}Semantic roles & 50–950 ramp
primary
#1F4FA1
secondary
#C49C58
accent
#AB3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81