#1F4C8F#1F4C8F
#1F4C8F is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.4% C 0.121 H 258.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4C8F |
|---|---|
| RGB | rgb(31, 76, 143) |
| HSL | hsl(216, 64%, 34%) |
| HSV | hsv(216, 78%, 56%) |
| CMYK | cmyk(78.3%, 46.9%, 0%, 43.9%) |
| CIE-LAB | lab(32.79, 9.77, -41.51) |
| CIE-LCH | lch(32.79, 42.64, 283.24°) |
| OKLab | oklab(42.36% -0.0242 -0.119) |
| OKLCH | oklch(42.36% 0.121 258.5) |
| XYZ | xyz(8.1056, 7.4424, 26.9906) |
| Luminance | 0.0744 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.45
Dusk Blue
#26538D
ΔE00 2.43
Light Navy
#155084
ΔE00 3.50
Darkish Blue
#014182
ΔE00 3.86
Twilight Blue
#0A437A
ΔE00 4.02
Cobalt
#0047AB
ΔE00 4.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4C8F #8F621F
analogous
#1F848F #1F4C8F #2A1F8F
triadic
#1F4C8F #8F1F4C #4C8F1F
tetradic
#1F4C8F #8F1F84 #8F621F #1F8F2A
square
#1F4C8F #8F1F84 #8F621F #1F8F2A
split-complementary
#1F4C8F #8F2A1F #848F1F
monochromatic
#09172A #14315D #1F4C8F #2A67C1 #4F87D9
Accessibility & contrast
On white
8.44
#1F4C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#1F4C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4C8F
8.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4C8F | 1.00 | 8.44 | 2.49 | 8.44 |
| #FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#0F488E
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #1f4c8f; /* rgb */ color: rgb(31, 76, 143); /* oklch */ color: oklch(42.4% 0.121 258.5);
Tailwind
colors: {
custom: {
50: '#6c7db0',
500: '#1f4c8f',
950: '#000000',
},
}SCSS
$custom: #1f4c8f; $custom-light: #6c7db0; $custom-dark: #000000;
JSON
{
"hex": "#1f4c8f",
"rgb": {
"r": 31,
"g": 76,
"b": 143
},
"hsl": {
"h": 215.893,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.42358,
"c": 0.12149,
"h": 258.5
},
"luminance": 0.07443
}Semantic roles & 50–950 ramp
primary
#1F4C8F
secondary
#BC904E
accent
#A440E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F