#1F4287#1F4287
#1F4287 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.123 H 262.1°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1F4287 |
|---|---|
| RGB | rgb(31, 66, 135) |
| HSL | hsl(220, 63%, 33%) |
| HSV | hsv(220, 77%, 53%) |
| CMYK | cmyk(77%, 51.1%, 0%, 47.1%) |
| CIE-LAB | lab(29.25, 13.38, -42.29) |
| CIE-LCH | lch(29.25, 44.36, 287.56°) |
| OKLab | oklab(39.46% -0.0168 -0.1215) |
| OKLCH | oklch(39.46% 0.123 262.1) |
| XYZ | xyz(6.8849, 5.9362, 23.6999) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.21
Darkish Blue
#014182
ΔE00 2.73
Twilight Blue
#0A437A
ΔE00 3.67
Cobalt
#0047AB
ΔE00 4.94
Prussian Blue
#004577
ΔE00 5.23
Marine Blue
#01386A
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F4287 #87641F
analogous
#1F7687 #1F4287 #301F87
triadic
#1F4287 #871F42 #42871F
tetradic
#1F4287 #871F76 #87641F #1F8730
square
#1F4287 #871F76 #87641F #1F8730
split-complementary
#1F4287 #87301F #76871F
monochromatic
#081123 #142A55 #1F4287 #2A5AB9 #4B7AD6
Accessibility & contrast
On white
9.60
#1F4287 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F4287 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F4287
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F4287 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F4287 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f4287; /* rgb */ color: rgb(31, 66, 135); /* oklch */ color: oklch(39.5% 0.123 262.1);
Tailwind
colors: {
custom: {
50: '#6a75aa',
500: '#1f4287',
950: '#000000',
},
}SCSS
$custom: #1f4287; $custom-light: #6a75aa; $custom-dark: #000000;
JSON
{
"hex": "#1f4287",
"rgb": {
"r": 31,
"g": 66,
"b": 135
},
"hsl": {
"h": 219.808,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.39461,
"c": 0.1227,
"h": 262.1
},
"luminance": 0.05937
}Semantic roles & 50–950 ramp
primary
#1F4287
secondary
#B8934A
accent
#AF42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F