#1F4997#1F4997
#1F4997 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.137 H 261.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4997 |
|---|---|
| RGB | rgb(31, 73, 151) |
| HSL | hsl(219, 66%, 36%) |
| HSV | hsv(219, 79%, 59%) |
| CMYK | cmyk(79.5%, 51.7%, 0%, 40.8%) |
| CIE-LAB | lab(32.46, 15.00, -46.93) |
| CIE-LCH | lch(32.46, 49.26, 287.73°) |
| OKLab | oklab(42.28% -0.0204 -0.135) |
| OKLCH | oklch(42.28% 0.137 261.4) |
| XYZ | xyz(8.5315, 7.2898, 30.2296) |
| Luminance | 0.0729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.16
Cobalt
#0047AB
ΔE00 2.80
Dusk Blue
#26538D
ΔE00 3.98
Darkish Blue
#014182
ΔE00 4.13
Twilight Blue
#0A437A
ΔE00 4.81
Sapphire
#0F52BA
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4997 #976D1F
analogous
#1F8597 #1F4997 #311F97
triadic
#1F4997 #971F49 #49971F
tetradic
#1F4997 #971F85 #976D1F #1F9731
square
#1F4997 #971F85 #976D1F #1F9731
split-complementary
#1F4997 #97311F #85971F
monochromatic
#0A1831 #153064 #1F4997 #2962CA #5484DC
Accessibility & contrast
On white
8.54
#1F4997 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#1F4997 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4997
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4997 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4997 | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#17529A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #1f4997; /* rgb */ color: rgb(31, 73, 151); /* oklch */ color: oklch(42.3% 0.137 261.4);
Tailwind
colors: {
custom: {
50: '#6e7bb6',
500: '#1f4997',
950: '#000000',
},
}SCSS
$custom: #1f4997; $custom-light: #6e7bb6; $custom-dark: #000000;
JSON
{
"hex": "#1f4997",
"rgb": {
"r": 31,
"g": 73,
"b": 151
},
"hsl": {
"h": 219,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.42277,
"c": 0.13659,
"h": 261.4
},
"luminance": 0.07291
}Semantic roles & 50–950 ramp
primary
#1F4997
secondary
#BF9952
accent
#AD3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80