#1F418D#1F418D
#1F418D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.133 H 263.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418D |
|---|---|
| RGB | rgb(31, 65, 141) |
| HSL | hsl(221, 64%, 34%) |
| HSV | hsv(221, 78%, 55%) |
| CMYK | cmyk(78%, 53.9%, 0%, 44.7%) |
| CIE-LAB | lab(29.40, 16.48, -45.76) |
| CIE-LCH | lch(29.40, 48.63, 289.81°) |
| OKLab | oklab(39.71% -0.0152 -0.1318) |
| OKLCH | oklch(39.71% 0.133 263.4) |
| XYZ | xyz(7.2614, 5.9942, 25.9684) |
| Luminance | 0.0600 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.57
Darkish Blue
#014182
ΔE00 3.49
Cobalt
#0047AB
ΔE00 4.37
Twilight Blue
#0A437A
ΔE00 4.57
Prussian Blue
#004577
ΔE00 6.04
Marine Blue
#01386A
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418D #8D6B1F
analogous
#1F788D #1F418D #341F8D
triadic
#1F418D #8D1F41 #418D1F
tetradic
#1F418D #8D1F78 #8D6B1F #1F8D34
square
#1F418D #8D1F78 #8D6B1F #1F8D34
split-complementary
#1F418D #8D341F #788D1F
monochromatic
#091329 #142A5B #1F418D #2A58BF #4E79D8
Accessibility & contrast
On white
9.55
#1F418D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#1F418D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418D
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418D | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A4B90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f418d; /* rgb */ color: rgb(31, 65, 141); /* oklch */ color: oklch(39.7% 0.133 263.4);
Tailwind
colors: {
custom: {
50: '#6c75af',
500: '#1f418d',
950: '#000000',
},
}SCSS
$custom: #1f418d; $custom-light: #6c75af; $custom-dark: #000000;
JSON
{
"hex": "#1f418d",
"rgb": {
"r": 31,
"g": 65,
"b": 141
},
"hsl": {
"h": 221.455,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.39713,
"c": 0.13264,
"h": 263.4
},
"luminance": 0.05995
}Semantic roles & 50–950 ramp
primary
#1F418D
secondary
#BB994D
accent
#B441E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F