#1F4687#1F4687
#1F4687 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.118 H 260.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4687 |
|---|---|
| RGB | rgb(31, 70, 135) |
| HSL | hsl(218, 63%, 33%) |
| HSV | hsv(218, 77%, 53%) |
| CMYK | cmyk(77%, 48.1%, 0%, 47.1%) |
| CIE-LAB | lab(30.45, 10.63, -40.36) |
| CIE-LCH | lch(30.45, 41.74, 284.76°) |
| OKLab | oklab(40.38% -0.0203 -0.1158) |
| OKLCH | oklch(40.38% 0.118 260) |
| XYZ | xyz(7.1268, 6.4201, 23.7806) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.18
Darkish Blue
#014182
ΔE00 2.46
Twilight Blue
#0A437A
ΔE00 3.01
Prussian Blue
#004577
ΔE00 4.37
Dusk Blue
#26538D
ΔE00 4.41
Cobalt
#0047AB
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4687 #87601F
analogous
#1F7A87 #1F4687 #2C1F87
triadic
#1F4687 #871F46 #46871F
tetradic
#1F4687 #871F7A #87601F #1F872C
square
#1F4687 #871F7A #87601F #1F872C
split-complementary
#1F4687 #872C1F #7A871F
monochromatic
#081223 #142C55 #1F4687 #2A60B9 #4B7FD6
Accessibility & contrast
On white
9.19
#1F4687 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#1F4687 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4687
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4687 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4687 | 1.00 | 9.19 | 2.28 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234D89
Deuteranopia (green-blind)
#084386
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #1f4687; /* rgb */ color: rgb(31, 70, 135); /* oklch */ color: oklch(40.4% 0.118 260.0);
Tailwind
colors: {
custom: {
50: '#6a78aa',
500: '#1f4687',
950: '#000000',
},
}SCSS
$custom: #1f4687; $custom-light: #6a78aa; $custom-dark: #000000;
JSON
{
"hex": "#1f4687",
"rgb": {
"r": 31,
"g": 70,
"b": 135
},
"hsl": {
"h": 217.5,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.40379,
"c": 0.11756,
"h": 260
},
"luminance": 0.06421
}Semantic roles & 50–950 ramp
primary
#1F4687
secondary
#B88F4A
accent
#A842E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F