#1F4C97#1F4C97
#1F4C97 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 42.9% C 0.133 H 260.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4C97 |
|---|---|
| RGB | rgb(31, 76, 151) |
| HSL | hsl(218, 66%, 36%) |
| HSV | hsv(218, 79%, 59%) |
| CMYK | cmyk(79.5%, 49.7%, 0%, 40.8%) |
| CIE-LAB | lab(33.34, 12.97, -45.51) |
| CIE-LCH | lch(33.34, 47.32, 285.91°) |
| OKLab | oklab(42.95% -0.0228 -0.1308) |
| OKLCH | oklch(42.95% 0.133 260.1) |
| XYZ | xyz(8.7334, 7.6935, 30.2969) |
| Luminance | 0.0770 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.56
Dusk Blue
#26538D
ΔE00 2.95
Cobalt
#0047AB
ΔE00 3.23
Light Navy
#155084
ΔE00 4.33
Darkish Blue
#014182
ΔE00 4.46
Sapphire
#0F52BA
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4C97 #976A1F
analogous
#1F8897 #1F4C97 #2E1F97
triadic
#1F4C97 #971F4C #4C971F
tetradic
#1F4C97 #971F88 #976A1F #1F972E
square
#1F4C97 #971F88 #976A1F #1F972E
split-complementary
#1F4C97 #972E1F #88971F
monochromatic
#0A1931 #153264 #1F4C97 #2966CA #5487DC
Accessibility & contrast
On white
8.27
#1F4C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#1F4C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4C97
8.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4C97 | 1.00 | 8.27 | 2.54 | 8.27 |
| #FFFFFF | 8.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20549A
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #1f4c97; /* rgb */ color: rgb(31, 76, 151); /* oklch */ color: oklch(42.9% 0.133 260.1);
Tailwind
colors: {
custom: {
50: '#6e7db6',
500: '#1f4c97',
950: '#000000',
},
}SCSS
$custom: #1f4c97; $custom-light: #6e7db6; $custom-dark: #000000;
JSON
{
"hex": "#1f4c97",
"rgb": {
"r": 31,
"g": 76,
"b": 151
},
"hsl": {
"h": 217.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.42949,
"c": 0.1328,
"h": 260.1
},
"luminance": 0.07695
}Semantic roles & 50–950 ramp
primary
#1F4C97
secondary
#BF9752
accent
#A93FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80