#1F418A#1F418A
#1F418A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.128 H 263.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418A |
|---|---|
| RGB | rgb(31, 65, 138) |
| HSL | hsl(221, 63%, 33%) |
| HSV | hsv(221, 78%, 54%) |
| CMYK | cmyk(77.5%, 52.9%, 0%, 45.9%) |
| CIE-LAB | lab(29.17, 15.28, -44.27) |
| CIE-LCH | lch(29.17, 46.83, 289.04°) |
| OKLab | oklab(39.47% -0.0155 -0.1274) |
| OKLCH | oklch(39.47% 0.128 263) |
| XYZ | xyz(7.0412, 5.9061, 24.8087) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.52
Darkish Blue
#014182
ΔE00 3.19
Twilight Blue
#0A437A
ΔE00 4.23
Cobalt
#0047AB
ΔE00 4.70
Marine Blue
#01386A
ΔE00 5.71
Prussian Blue
#004577
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418A #8A681F
analogous
#1F768A #1F418A #331F8A
triadic
#1F418A #8A1F41 #418A1F
tetradic
#1F418A #8A1F76 #8A681F #1F8A33
square
#1F418A #8A1F76 #8A681F #1F8A33
split-complementary
#1F418A #8A331F #768A1F
monochromatic
#091226 #142958 #1F418A #2A59BC #4C78D7
Accessibility & contrast
On white
9.63
#1F418A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F418A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418A
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418A | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f418a; /* rgb */ color: rgb(31, 65, 138); /* oklch */ color: oklch(39.5% 0.128 263.0);
Tailwind
colors: {
custom: {
50: '#6b75ad',
500: '#1f418a',
950: '#000000',
},
}SCSS
$custom: #1f418a; $custom-light: #6b75ad; $custom-dark: #000000;
JSON
{
"hex": "#1f418a",
"rgb": {
"r": 31,
"g": 65,
"b": 138
},
"hsl": {
"h": 220.935,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.39472,
"c": 0.12833,
"h": 263
},
"luminance": 0.05907
}Semantic roles & 50–950 ramp
primary
#1F418A
secondary
#BA974B
accent
#B241E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F