#1F478A#1F478A
#1F478A is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.8% C 0.121 H 260.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F478A |
|---|---|
| RGB | rgb(31, 71, 138) |
| HSL | hsl(218, 63%, 33%) |
| HSV | hsv(218, 78%, 54%) |
| CMYK | cmyk(77.5%, 48.6%, 0%, 45.9%) |
| CIE-LAB | lab(30.95, 11.15, -41.40) |
| CIE-LCH | lch(30.95, 42.87, 285.08°) |
| OKLab | oklab(40.83% -0.0207 -0.1188) |
| OKLCH | oklch(40.83% 0.121 260.1) |
| XYZ | xyz(7.4041, 6.6319, 24.9297) |
| Luminance | 0.0663 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.71
Darkish Blue
#014182
ΔE00 2.74
Twilight Blue
#0A437A
ΔE00 3.29
Dusk Blue
#26538D
ΔE00 4.10
Cobalt
#0047AB
ΔE00 4.36
Prussian Blue
#004577
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F478A #8A621F
analogous
#1F7C8A #1F478A #2C1F8A
triadic
#1F478A #8A1F47 #478A1F
tetradic
#1F478A #8A1F7C #8A621F #1F8A2C
square
#1F478A #8A1F7C #8A621F #1F8A2C
split-complementary
#1F478A #8A2C1F #7C8A1F
monochromatic
#091426 #142D58 #1F478A #2A61BC #4C80D7
Accessibility & contrast
On white
9.03
#1F478A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#1F478A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F478A
9.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F478A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F478A | 1.00 | 9.03 | 2.33 | 9.03 |
| #FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#224E8C
Deuteranopia (green-blind)
#044489
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f478a; /* rgb */ color: rgb(31, 71, 138); /* oklch */ color: oklch(40.8% 0.121 260.1);
Tailwind
colors: {
custom: {
50: '#6b79ad',
500: '#1f478a',
950: '#000000',
},
}SCSS
$custom: #1f478a; $custom-light: #6b79ad; $custom-dark: #000000;
JSON
{
"hex": "#1f478a",
"rgb": {
"r": 31,
"g": 71,
"b": 138
},
"hsl": {
"h": 217.57,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.40833,
"c": 0.12062,
"h": 260.1
},
"luminance": 0.06633
}Semantic roles & 50–950 ramp
primary
#1F478A
secondary
#BA904B
accent
#A941E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F