#1F478F#1F478F
#1F478F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.2% C 0.128 H 261.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).
Color values
| HEX | #1F478F |
|---|---|
| RGB | rgb(31, 71, 143) |
| HSL | hsl(219, 64%, 34%) |
| HSV | hsv(219, 78%, 56%) |
| CMYK | cmyk(78.3%, 50.3%, 0%, 43.9%) |
| CIE-LAB | lab(31.30, 13.16, -43.91) |
| CIE-LCH | lch(31.30, 45.84, 286.68°) |
| OKLab | oklab(41.21% -0.0199 -0.1262) |
| OKLCH | oklch(41.21% 0.128 261) |
| XYZ | xyz(7.7744, 6.7801, 26.8802) |
| Luminance | 0.0678 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.44
Darkish Blue
#014182
ΔE00 3.18
Cobalt
#0047AB
ΔE00 3.72
Twilight Blue
#0A437A
ΔE00 3.89
Dusk Blue
#26538D
ΔE00 4.25
Light Navy
#155084
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F478F #8F671F
analogous
#1F7F8F #1F478F #2F1F8F
triadic
#1F478F #8F1F47 #478F1F
tetradic
#1F478F #8F1F7F #8F671F #1F8F2F
square
#1F478F #8F1F7F #8F671F #1F8F2F
split-complementary
#1F478F #8F2F1F #7F8F1F
monochromatic
#09152A #142E5D #1F478F #2A60C1 #4F81D9
Accessibility & contrast
On white
8.91
#1F478F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#1F478F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F478F
8.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F478F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F478F | 1.00 | 8.91 | 2.36 | 8.91 |
| #FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4F92
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1f478f; /* rgb */ color: rgb(31, 71, 143); /* oklch */ color: oklch(41.2% 0.128 261.0);
Tailwind
colors: {
custom: {
50: '#6c79b0',
500: '#1f478f',
950: '#000000',
},
}SCSS
$custom: #1f478f; $custom-light: #6c79b0; $custom-dark: #000000;
JSON
{
"hex": "#1f478f",
"rgb": {
"r": 31,
"g": 71,
"b": 143
},
"hsl": {
"h": 218.571,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.41211,
"c": 0.12778,
"h": 261
},
"luminance": 0.06781
}Semantic roles & 50–950 ramp
primary
#1F478F
secondary
#BC954E
accent
#AC40E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F