#1F478D#1F478D
#1F478D is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.1% C 0.125 H 260.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F478D |
|---|---|
| RGB | rgb(31, 71, 141) |
| HSL | hsl(218, 64%, 34%) |
| HSV | hsv(218, 78%, 55%) |
| CMYK | cmyk(78%, 49.6%, 0%, 44.7%) |
| CIE-LAB | lab(31.16, 12.36, -42.91) |
| CIE-LCH | lch(31.16, 44.65, 286.07°) |
| OKLab | oklab(41.06% -0.0202 -0.1233) |
| OKLCH | oklch(41.06% 0.125 260.7) |
| XYZ | xyz(7.6243, 6.7200, 26.0894) |
| Luminance | 0.0672 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.43
Darkish Blue
#014182
ΔE00 2.99
Twilight Blue
#0A437A
ΔE00 3.65
Cobalt
#0047AB
ΔE00 3.98
Dusk Blue
#26538D
ΔE00 4.18
Prussian Blue
#004577
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F478D #8D651F
analogous
#1F7E8D #1F478D #2E1F8D
triadic
#1F478D #8D1F47 #478D1F
tetradic
#1F478D #8D1F7E #8D651F #1F8D2E
square
#1F478D #8D1F7E #8D651F #1F8D2E
split-complementary
#1F478D #8D2E1F #7E8D1F
monochromatic
#091429 #142E5B #1F478D #2A60BF #4E80D8
Accessibility & contrast
On white
8.96
#1F478D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#1F478D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F478D
8.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F478D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F478D | 1.00 | 8.96 | 2.34 | 8.96 |
| #FFFFFF | 8.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f478d; /* rgb */ color: rgb(31, 71, 141); /* oklch */ color: oklch(41.1% 0.125 260.7);
Tailwind
colors: {
custom: {
50: '#6c79af',
500: '#1f478d',
950: '#000000',
},
}SCSS
$custom: #1f478d; $custom-light: #6c79af; $custom-dark: #000000;
JSON
{
"hex": "#1f478d",
"rgb": {
"r": 31,
"g": 71,
"b": 141
},
"hsl": {
"h": 218.182,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.41058,
"c": 0.12493,
"h": 260.7
},
"luminance": 0.06721
}Semantic roles & 50–950 ramp
primary
#1F478D
secondary
#BB934D
accent
#AB41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F