#1F418C#1F418C
#1F418C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.131 H 263.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418C |
|---|---|
| RGB | rgb(31, 65, 140) |
| HSL | hsl(221, 64%, 34%) |
| HSV | hsv(221, 78%, 55%) |
| CMYK | cmyk(77.9%, 53.6%, 0%, 45.1%) |
| CIE-LAB | lab(29.32, 16.08, -45.26) |
| CIE-LCH | lch(29.32, 48.03, 289.56°) |
| OKLab | oklab(39.63% -0.0153 -0.1303) |
| OKLCH | oklch(39.63% 0.131 263.3) |
| XYZ | xyz(7.1873, 5.9645, 25.5783) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.55
Darkish Blue
#014182
ΔE00 3.39
Twilight Blue
#0A437A
ΔE00 4.45
Cobalt
#0047AB
ΔE00 4.48
Prussian Blue
#004577
ΔE00 5.95
Marine Blue
#01386A
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418C #8C6A1F
analogous
#1F778C #1F418C #331F8C
triadic
#1F418C #8C1F41 #418C1F
tetradic
#1F418C #8C1F77 #8C6A1F #1F8C33
square
#1F418C #8C1F77 #8C6A1F #1F8C33
split-complementary
#1F418C #8C331F #778C1F
monochromatic
#091228 #142A5A #1F418C #2A58BE #4E79D8
Accessibility & contrast
On white
9.58
#1F418C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F418C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418C
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418C | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D4A8F
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f418c; /* rgb */ color: rgb(31, 65, 140); /* oklch */ color: oklch(39.6% 0.131 263.3);
Tailwind
colors: {
custom: {
50: '#6c75ae',
500: '#1f418c',
950: '#000000',
},
}SCSS
$custom: #1f418c; $custom-light: #6c75ae; $custom-dark: #000000;
JSON
{
"hex": "#1f418c",
"rgb": {
"r": 31,
"g": 65,
"b": 140
},
"hsl": {
"h": 221.284,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.39632,
"c": 0.13122,
"h": 263.3
},
"luminance": 0.05965
}Semantic roles & 50–950 ramp
primary
#1F418C
secondary
#BB984C
accent
#B341E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F