#1F417C#1F417C
#1F417C is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.108 H 260.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #1F417C |
|---|---|
| RGB | rgb(31, 65, 124) |
| HSL | hsl(218, 60%, 30%) |
| HSV | hsv(218, 75%, 49%) |
| CMYK | cmyk(75%, 47.6%, 0%, 51.4%) |
| CIE-LAB | lab(28.18, 9.65, -37.15) |
| CIE-LCH | lch(28.18, 38.38, 284.56°) |
| OKLab | oklab(38.4% -0.0176 -0.1064) |
| OKLCH | oklch(38.4% 0.108 260.6) |
| XYZ | xyz(6.0922, 5.5265, 19.8105) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.41
Twilight Blue
#0A437A
ΔE00 2.91
Cobalt (survey)
#1E488F
ΔE00 3.20
Marine Blue
#01386A
ΔE00 4.16
Prussian Blue
#004577
ΔE00 4.56
Dusk Blue
#26538D
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F417C #7C5A1F
analogous
#1F6F7C #1F417C #2C1F7C
triadic
#1F417C #7C1F41 #417C1F
tetradic
#1F417C #7C1F6F #7C5A1F #1F7C2C
square
#1F417C #7C1F6F #7C5A1F #1F7C2C
split-complementary
#1F417C #7C2C1F #6F7C1F
monochromatic
#070E1A #13274B #1F417C #2B5BAD #4578D0
Accessibility & contrast
On white
9.97
#1F417C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#1F417C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F417C
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F417C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F417C | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#0E3F7B
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #1f417c; /* rgb */ color: rgb(31, 65, 124); /* oklch */ color: oklch(38.4% 0.108 260.6);
Tailwind
colors: {
custom: {
50: '#6875a2',
500: '#1f417c',
950: '#000000',
},
}SCSS
$custom: #1f417c; $custom-light: #6875a2; $custom-dark: #000000;
JSON
{
"hex": "#1f417c",
"rgb": {
"r": 31,
"g": 65,
"b": 124
},
"hsl": {
"h": 218.065,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.38398,
"c": 0.10789,
"h": 260.6
},
"luminance": 0.05527
}Semantic roles & 50–950 ramp
primary
#1F417C
secondary
#AF8948
accent
#A945E3
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F