#1F418E#1F418E
#1F418E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.134 H 263.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418E |
|---|---|
| RGB | rgb(31, 65, 142) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 56%) |
| CMYK | cmyk(78.2%, 54.2%, 0%, 44.3%) |
| CIE-LAB | lab(29.47, 16.88, -46.25) |
| CIE-LCH | lch(29.47, 49.24, 290.05°) |
| OKLab | oklab(39.79% -0.0151 -0.1332) |
| OKLCH | oklch(39.79% 0.134 263.5) |
| XYZ | xyz(7.3361, 6.0241, 26.3621) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.61
Darkish Blue
#014182
ΔE00 3.60
Cobalt
#0047AB
ΔE00 4.26
Twilight Blue
#0A437A
ΔE00 4.68
Sapphire (survey)
#2138AB
ΔE00 6.03
Prussian Blue
#004577
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418E #8E6C1F
analogous
#1F798E #1F418E #351F8E
triadic
#1F418E #8E1F41 #418E1F
tetradic
#1F418E #8E1F79 #8E6C1F #1F8E35
square
#1F418E #8E1F79 #8E6C1F #1F8E35
split-complementary
#1F418E #8E351F #798E1F
monochromatic
#09132A #142A5C #1F418E #2A58C0 #4F79D9
Accessibility & contrast
On white
9.52
#1F418E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#1F418E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418E
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418E | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f418e; /* rgb */ color: rgb(31, 65, 142); /* oklch */ color: oklch(39.8% 0.134 263.5);
Tailwind
colors: {
custom: {
50: '#6c75b0',
500: '#1f418e',
950: '#000000',
},
}SCSS
$custom: #1f418e; $custom-light: #6c75b0; $custom-dark: #000000;
JSON
{
"hex": "#1f418e",
"rgb": {
"r": 31,
"g": 65,
"b": 142
},
"hsl": {
"h": 221.622,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.39794,
"c": 0.13408,
"h": 263.5
},
"luminance": 0.06025
}Semantic roles & 50–950 ramp
primary
#1F418E
secondary
#BB9A4D
accent
#B441E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F