#1F417E#1F417E
#1F417E is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.111 H 261.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1F417E |
|---|---|
| RGB | rgb(31, 65, 126) |
| HSL | hsl(219, 61%, 31%) |
| HSV | hsv(219, 75%, 49%) |
| CMYK | cmyk(75.4%, 48.4%, 0%, 50.6%) |
| CIE-LAB | lab(28.32, 10.45, -38.18) |
| CIE-LCH | lch(28.32, 39.59, 285.31°) |
| OKLab | oklab(38.55% -0.0173 -0.1095) |
| OKLCH | oklch(38.55% 0.111 261) |
| XYZ | xyz(6.2199, 5.5776, 20.4834) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.43
Cobalt (survey)
#1E488F
ΔE00 3.03
Twilight Blue
#0A437A
ΔE00 3.06
Marine Blue
#01386A
ΔE00 4.35
Prussian Blue
#004577
ΔE00 4.72
Cobalt
#0047AB
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F417E #7E5C1F
analogous
#1F707E #1F417E #2C1F7E
triadic
#1F417E #7E1F41 #417E1F
tetradic
#1F417E #7E1F70 #7E5C1F #1F7E2C
square
#1F417E #7E1F70 #7E5C1F #1F7E2C
split-complementary
#1F417E #7E2C1F #707E1F
monochromatic
#070E1C #13284D #1F417E #2B5AAF #4678D1
Accessibility & contrast
On white
9.93
#1F417E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F417E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F417E
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F417E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F417E | 1.00 | 9.93 | 2.12 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#214780
Deuteranopia (green-blind)
#0A3F7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f417e; /* rgb */ color: rgb(31, 65, 126); /* oklch */ color: oklch(38.5% 0.111 261.0);
Tailwind
colors: {
custom: {
50: '#6875a4',
500: '#1f417e',
950: '#000000',
},
}SCSS
$custom: #1f417e; $custom-light: #6875a4; $custom-dark: #000000;
JSON
{
"hex": "#1f417e",
"rgb": {
"r": 31,
"g": 65,
"b": 126
},
"hsl": {
"h": 218.526,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.38546,
"c": 0.11084,
"h": 261
},
"luminance": 0.05578
}Semantic roles & 50–950 ramp
primary
#1F417E
secondary
#B18B48
accent
#AB44E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F