#1F417F#1F417F
#1F417F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.112 H 261.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #1F417F |
|---|---|
| RGB | rgb(31, 65, 127) |
| HSL | hsl(219, 61%, 31%) |
| HSV | hsv(219, 76%, 50%) |
| CMYK | cmyk(75.6%, 48.8%, 0%, 50.2%) |
| CIE-LAB | lab(28.39, 10.85, -38.70) |
| CIE-LCH | lch(28.39, 40.19, 285.67°) |
| OKLab | oklab(38.62% -0.0171 -0.111) |
| OKLCH | oklch(38.62% 0.112 261.2) |
| XYZ | xyz(6.2848, 5.6035, 20.8249) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.46
Cobalt (survey)
#1E488F
ΔE00 2.95
Twilight Blue
#0A437A
ΔE00 3.14
Marine Blue
#01386A
ΔE00 4.46
Prussian Blue
#004577
ΔE00 4.80
Cobalt
#0047AB
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F417F #7F5D1F
analogous
#1F717F #1F417F #2D1F7F
triadic
#1F417F #7F1F41 #417F1F
tetradic
#1F417F #7F1F71 #7F5D1F #1F7F2D
square
#1F417F #7F1F71 #7F5D1F #1F7F2D
split-complementary
#1F417F #7F2D1F #717F1F
monochromatic
#070F1D #13284E #1F417F #2B5AB0 #4678D2
Accessibility & contrast
On white
9.90
#1F417F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F417F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F417F
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F417F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F417F | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#073F7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f417f; /* rgb */ color: rgb(31, 65, 127); /* oklch */ color: oklch(38.6% 0.112 261.2);
Tailwind
colors: {
custom: {
50: '#6975a4',
500: '#1f417f',
950: '#000000',
},
}SCSS
$custom: #1f417f; $custom-light: #6975a4; $custom-dark: #000000;
JSON
{
"hex": "#1f417f",
"rgb": {
"r": 31,
"g": 65,
"b": 127
},
"hsl": {
"h": 218.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.38621,
"c": 0.11231,
"h": 261.2
},
"luminance": 0.05604
}Semantic roles & 50–950 ramp
primary
#1F417F
secondary
#B28C48
accent
#AB44E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F