#1F4D8F#1F4D8F
#1F4D8F is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.6% C 0.120 H 258.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4D8F |
|---|---|
| RGB | rgb(31, 77, 143) |
| HSL | hsl(215, 64%, 34%) |
| HSV | hsv(215, 78%, 56%) |
| CMYK | cmyk(78.3%, 46.2%, 0%, 43.9%) |
| CIE-LAB | lab(33.10, 9.09, -41.03) |
| CIE-LCH | lch(33.10, 42.02, 282.50°) |
| OKLab | oklab(42.59% -0.0251 -0.1176) |
| OKLCH | oklch(42.59% 0.12 258) |
| XYZ | xyz(8.1751, 7.5813, 27.0138) |
| Luminance | 0.0758 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.83
Dusk Blue
#26538D
ΔE00 2.07
Light Navy
#155084
ΔE00 3.21
Darkish Blue
#014182
ΔE00 4.09
Twilight Blue
#0A437A
ΔE00 4.15
Cobalt
#0047AB
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4D8F #8F611F
analogous
#1F858F #1F4D8F #291F8F
triadic
#1F4D8F #8F1F4D #4D8F1F
tetradic
#1F4D8F #8F1F85 #8F611F #1F8F29
square
#1F4D8F #8F1F85 #8F611F #1F8F29
split-complementary
#1F4D8F #8F291F #858F1F
monochromatic
#09172A #14325D #1F4D8F #2A68C1 #4F88D9
Accessibility & contrast
On white
8.35
#1F4D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#1F4D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4D8F
8.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4D8F | 1.00 | 8.35 | 2.52 | 8.35 |
| #FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B5392
Deuteranopia (green-blind)
#13498E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #1f4d8f; /* rgb */ color: rgb(31, 77, 143); /* oklch */ color: oklch(42.6% 0.120 258.0);
Tailwind
colors: {
custom: {
50: '#6c7eb0',
500: '#1f4d8f',
950: '#000000',
},
}SCSS
$custom: #1f4d8f; $custom-light: #6c7eb0; $custom-dark: #000000;
JSON
{
"hex": "#1f4d8f",
"rgb": {
"r": 31,
"g": 77,
"b": 143
},
"hsl": {
"h": 215.357,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.42591,
"c": 0.12026,
"h": 258
},
"luminance": 0.07582
}Semantic roles & 50–950 ramp
primary
#1F4D8F
secondary
#BC8F4E
accent
#A340E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F