#1F418F#1F418F
#1F418F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.136 H 263.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #1F418F |
|---|---|
| RGB | rgb(31, 65, 143) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 56%) |
| CMYK | cmyk(78.3%, 54.5%, 0%, 43.9%) |
| CIE-LAB | lab(29.55, 17.28, -46.74) |
| CIE-LCH | lch(29.55, 49.84, 290.29°) |
| OKLab | oklab(39.88% -0.015 -0.1347) |
| OKLCH | oklch(39.88% 0.136 263.7) |
| XYZ | xyz(7.4115, 6.0542, 26.7592) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.65
Darkish Blue
#014182
ΔE00 3.71
Cobalt
#0047AB
ΔE00 4.15
Twilight Blue
#0A437A
ΔE00 4.80
Sapphire (survey)
#2138AB
ΔE00 5.89
Prussian Blue
#004577
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F418F #8F6D1F
analogous
#1F798F #1F418F #351F8F
triadic
#1F418F #8F1F41 #418F1F
tetradic
#1F418F #8F1F79 #8F6D1F #1F8F35
square
#1F418F #8F1F79 #8F6D1F #1F8F35
split-complementary
#1F418F #8F351F #798F1F
monochromatic
#09132A #142A5D #1F418F #2A58C1 #4F79D9
Accessibility & contrast
On white
9.50
#1F418F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#1F418F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F418F
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F418F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F418F | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#054B92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #1f418f; /* rgb */ color: rgb(31, 65, 143); /* oklch */ color: oklch(39.9% 0.136 263.7);
Tailwind
colors: {
custom: {
50: '#6d75b0',
500: '#1f418f',
950: '#000000',
},
}SCSS
$custom: #1f418f; $custom-light: #6d75b0; $custom-dark: #000000;
JSON
{
"hex": "#1f418f",
"rgb": {
"r": 31,
"g": 65,
"b": 143
},
"hsl": {
"h": 221.786,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.39875,
"c": 0.1355,
"h": 263.7
},
"luminance": 0.06055
}Semantic roles & 50–950 ramp
primary
#1F418F
secondary
#BC9B4E
accent
#B540E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80