#1F418B#1F418B
#1F418B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.130 H 263.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418B |
|---|---|
| RGB | rgb(31, 65, 139) |
| HSL | hsl(221, 64%, 33%) |
| HSV | hsv(221, 78%, 55%) |
| CMYK | cmyk(77.7%, 53.2%, 0%, 45.5%) |
| CIE-LAB | lab(29.25, 15.68, -44.77) |
| CIE-LCH | lch(29.25, 47.43, 289.30°) |
| OKLab | oklab(39.55% -0.0154 -0.1289) |
| OKLCH | oklch(39.55% 0.13 263.2) |
| XYZ | xyz(7.1139, 5.9352, 25.1918) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.53
Darkish Blue
#014182
ΔE00 3.28
Twilight Blue
#0A437A
ΔE00 4.34
Cobalt
#0047AB
ΔE00 4.59
Marine Blue
#01386A
ΔE00 5.83
Prussian Blue
#004577
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418B #8B691F
analogous
#1F778B #1F418B #331F8B
triadic
#1F418B #8B1F41 #418B1F
tetradic
#1F418B #8B1F77 #8B691F #1F8B33
square
#1F418B #8B1F77 #8B691F #1F8B33
split-complementary
#1F418B #8B331F #778B1F
monochromatic
#091227 #142A59 #1F418B #2A58BD #4D79D7
Accessibility & contrast
On white
9.60
#1F418B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F418B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418B
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418B | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f418b; /* rgb */ color: rgb(31, 65, 139); /* oklch */ color: oklch(39.6% 0.130 263.2);
Tailwind
colors: {
custom: {
50: '#6c75ad',
500: '#1f418b',
950: '#000000',
},
}SCSS
$custom: #1f418b; $custom-light: #6c75ad; $custom-dark: #000000;
JSON
{
"hex": "#1f418b",
"rgb": {
"r": 31,
"g": 65,
"b": 139
},
"hsl": {
"h": 221.111,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.39552,
"c": 0.12978,
"h": 263.2
},
"luminance": 0.05936
}Semantic roles & 50–950 ramp
primary
#1F418B
secondary
#BA974C
accent
#B341E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F