#1F1585#1F1585
#1F1585 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.172 H 273.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1585 |
|---|---|
| RGB | rgb(31, 21, 133) |
| HSL | hsl(245, 73%, 30%) |
| HSV | hsv(245, 84%, 52%) |
| CMYK | cmyk(76.7%, 84.2%, 0%, 47.8%) |
| CIE-LAB | lab(18.01, 41.56, -59.44) |
| CIE-LCH | lch(18.01, 72.52, 304.96°) |
| OKLab | oklab(31.16% 0.0115 -0.1719) |
| OKLCH | oklch(31.16% 0.172 273.8) |
| XYZ | xyz(5.0655, 2.5206, 22.4053) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.27
Darkblue
#00008B
ΔE00 3.50
Midnight Blue
#191970
ΔE00 3.72
Navy
#000080
ΔE00 3.79
Indigo (survey)
#380282
ΔE00 4.19
Deep Blue
#040273
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1585 #7B8515
analogous
#154385 #1F1585 #571585
triadic
#1F1585 #851F15 #15851F
tetradic
#1F1585 #851543 #7B8515 #158557
square
#1F1585 #851543 #7B8515 #158557
split-complementary
#1F1585 #855715 #438515
monochromatic
#06041B #130D50 #1F1585 #2B1DBA #4435DF
Accessibility & contrast
On white
13.96
#1F1585 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#1F1585 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1585
13.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1585 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1585 | 1.00 | 13.96 | 1.50 | 13.96 |
| #FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003188
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1f1585; /* rgb */ color: rgb(31, 21, 133); /* oklch */ color: oklch(31.2% 0.172 273.8);
Tailwind
colors: {
custom: {
50: '#6e56aa',
500: '#1f1585',
950: '#000000',
},
}SCSS
$custom: #1f1585; $custom-light: #6e56aa; $custom-dark: #000000;
JSON
{
"hex": "#1f1585",
"rgb": {
"r": 31,
"g": 21,
"b": 133
},
"hsl": {
"h": 245.357,
"s": 72.727,
"l": 30.196
},
"oklch": {
"l": 0.31163,
"c": 0.17228,
"h": 273.8
},
"luminance": 0.02521
}Semantic roles & 50–950 ramp
primary
#1F1585
secondary
#AEB93C
accent
#EF38DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F