#1F4187#1F4187
#1F4187 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.124 H 262.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4187 |
|---|---|
| RGB | rgb(31, 65, 135) |
| HSL | hsl(220, 63%, 33%) |
| HSV | hsv(220, 77%, 53%) |
| CMYK | cmyk(77%, 51.9%, 0%, 47.1%) |
| CIE-LAB | lab(28.95, 14.07, -42.77) |
| CIE-LCH | lch(28.95, 45.02, 288.21°) |
| OKLab | oklab(39.24% -0.0159 -0.123) |
| OKLCH | oklch(39.24% 0.124 262.6) |
| XYZ | xyz(6.8270, 5.8204, 23.6806) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.54
Darkish Blue
#014182
ΔE00 2.92
Twilight Blue
#0A437A
ΔE00 3.91
Cobalt
#0047AB
ΔE00 5.05
Marine Blue
#01386A
ΔE00 5.35
Prussian Blue
#004577
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4187 #87651F
analogous
#1F7587 #1F4187 #311F87
triadic
#1F4187 #871F41 #41871F
tetradic
#1F4187 #871F75 #87651F #1F8731
square
#1F4187 #871F75 #87651F #1F8731
split-complementary
#1F4187 #87311F #75871F
monochromatic
#081123 #142955 #1F4187 #2A59B9 #4B78D6
Accessibility & contrast
On white
9.70
#1F4187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1F4187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4187
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4187 | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f4187; /* rgb */ color: rgb(31, 65, 135); /* oklch */ color: oklch(39.2% 0.124 262.6);
Tailwind
colors: {
custom: {
50: '#6b75aa',
500: '#1f4187',
950: '#000000',
},
}SCSS
$custom: #1f4187; $custom-light: #6b75aa; $custom-dark: #000000;
JSON
{
"hex": "#1f4187",
"rgb": {
"r": 31,
"g": 65,
"b": 135
},
"hsl": {
"h": 220.385,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.39235,
"c": 0.12399,
"h": 262.6
},
"luminance": 0.05821
}Semantic roles & 50–950 ramp
primary
#1F4187
secondary
#B8944A
accent
#B042E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F