#1F478C#1F478C
#1F478C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.123 H 260.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F478C |
|---|---|
| RGB | rgb(31, 71, 140) |
| HSL | hsl(218, 64%, 34%) |
| HSV | hsv(218, 78%, 55%) |
| CMYK | cmyk(77.9%, 49.3%, 0%, 45.1%) |
| CIE-LAB | lab(31.09, 11.96, -42.41) |
| CIE-LCH | lch(31.09, 44.06, 285.74°) |
| OKLab | oklab(40.98% -0.0204 -0.1218) |
| OKLCH | oklch(40.98% 0.123 260.5) |
| XYZ | xyz(7.5502, 6.6904, 25.6993) |
| Luminance | 0.0669 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.50
Darkish Blue
#014182
ΔE00 2.90
Twilight Blue
#0A437A
ΔE00 3.52
Cobalt
#0047AB
ΔE00 4.10
Dusk Blue
#26538D
ΔE00 4.14
Prussian Blue
#004577
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F478C #8C641F
analogous
#1F7D8C #1F478C #2D1F8C
triadic
#1F478C #8C1F47 #478C1F
tetradic
#1F478C #8C1F7D #8C641F #1F8C2D
square
#1F478C #8C1F7D #8C641F #1F8C2D
split-complementary
#1F478C #8C2D1F #7D8C1F
monochromatic
#091428 #142E5A #1F478C #2A60BE #4E80D8
Accessibility & contrast
On white
8.98
#1F478C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#1F478C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F478C
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F478C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F478C | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#204E8F
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f478c; /* rgb */ color: rgb(31, 71, 140); /* oklch */ color: oklch(41.0% 0.123 260.5);
Tailwind
colors: {
custom: {
50: '#6b79ae',
500: '#1f478c',
950: '#000000',
},
}SCSS
$custom: #1f478c; $custom-light: #6b79ae; $custom-dark: #000000;
JSON
{
"hex": "#1f478c",
"rgb": {
"r": 31,
"g": 71,
"b": 140
},
"hsl": {
"h": 217.982,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.40983,
"c": 0.12349,
"h": 260.5
},
"luminance": 0.06691
}Semantic roles & 50–950 ramp
primary
#1F478C
secondary
#BB924C
accent
#AA41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F