#1F1582#1F1582
#1F1582 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.8% C 0.169 H 274.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1582 |
|---|---|
| RGB | rgb(31, 21, 130) |
| HSL | hsl(246, 72%, 30%) |
| HSV | hsv(246, 84%, 51%) |
| CMYK | cmyk(76.2%, 83.8%, 0%, 49%) |
| CIE-LAB | lab(17.64, 40.60, -58.16) |
| CIE-LCH | lch(17.64, 70.92, 304.92°) |
| OKLab | oklab(30.8% 0.0123 -0.1682) |
| OKLCH | oklch(30.8% 0.169 274.2) |
| XYZ | xyz(4.8612, 2.4388, 21.3293) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.65
Midnight Blue
#191970
ΔE00 3.31
Darkblue
#00008B
ΔE00 3.65
Navy
#000080
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 4.22
Dark Royal Blue
#02066F
ΔE00 4.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1582 #788215
analogous
#154182 #1F1582 #561582
triadic
#1F1582 #821F15 #15821F
tetradic
#1F1582 #821541 #788215 #158256
square
#1F1582 #821541 #788215 #158256
split-complementary
#1F1582 #825615 #418215
monochromatic
#06041A #120C4D #1F1582 #2C1EB7 #4333DE
Accessibility & contrast
On white
14.11
#1F1582 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#1F1582 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1582
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1582 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1582 | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002680
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1f1582; /* rgb */ color: rgb(31, 21, 130); /* oklch */ color: oklch(30.8% 0.169 274.2);
Tailwind
colors: {
custom: {
50: '#6d56a8',
500: '#1f1582',
950: '#000000',
},
}SCSS
$custom: #1f1582; $custom-light: #6d56a8; $custom-dark: #000000;
JSON
{
"hex": "#1f1582",
"rgb": {
"r": 31,
"g": 21,
"b": 130
},
"hsl": {
"h": 245.505,
"s": 72.185,
"l": 29.608
},
"oklch": {
"l": 0.30798,
"c": 0.16864,
"h": 274.2
},
"luminance": 0.02439
}Semantic roles & 50–950 ramp
primary
#1F1582
secondary
#ABB73C
accent
#EF39DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F