#1F4797#1F4797
#1F4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.139 H 262.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4797 |
|---|---|
| RGB | rgb(31, 71, 151) |
| HSL | hsl(220, 66%, 36%) |
| HSV | hsv(220, 79%, 59%) |
| CMYK | cmyk(79.5%, 53%, 0%, 40.8%) |
| CIE-LAB | lab(31.88, 16.36, -47.86) |
| CIE-LCH | lch(31.88, 50.58, 288.88°) |
| OKLab | oklab(41.84% -0.0188 -0.1378) |
| OKLCH | oklch(41.84% 0.139 262.2) |
| XYZ | xyz(8.4022, 7.0312, 30.1865) |
| Luminance | 0.0703 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.42
Cobalt
#0047AB
ΔE00 2.71
Darkish Blue
#014182
ΔE00 4.07
Dusk Blue
#26538D
ΔE00 4.67
Twilight Blue
#0A437A
ΔE00 4.90
Sapphire
#0F52BA
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4797 #976F1F
analogous
#1F8397 #1F4797 #331F97
triadic
#1F4797 #971F47 #47971F
tetradic
#1F4797 #971F83 #976F1F #1F9733
square
#1F4797 #971F83 #976F1F #1F9733
split-complementary
#1F4797 #97331F #83971F
monochromatic
#0A1731 #152F64 #1F4797 #295FCA #5482DC
Accessibility & contrast
On white
8.73
#1F4797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#1F4797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4797
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4797 | 1.00 | 8.73 | 2.41 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#10519A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #1f4797; /* rgb */ color: rgb(31, 71, 151); /* oklch */ color: oklch(41.8% 0.139 262.2);
Tailwind
colors: {
custom: {
50: '#6e79b6',
500: '#1f4797',
950: '#000000',
},
}SCSS
$custom: #1f4797; $custom-light: #6e79b6; $custom-dark: #000000;
JSON
{
"hex": "#1f4797",
"rgb": {
"r": 31,
"g": 71,
"b": 151
},
"hsl": {
"h": 220,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.41835,
"c": 0.13913,
"h": 262.2
},
"luminance": 0.07032
}Semantic roles & 50–950 ramp
primary
#1F4797
secondary
#BF9B52
accent
#B03FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80