HSL(271, 19%, 31%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(271,19%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 19%, 31%) | color: hsl(271, 19%, 31%) | |
| HEX | #50405E | color: #50405E | |
| RGB | rgb(80, 64, 94) | color: rgb(80, 64, 94) | |
| CMYK | cmyk(15%, 32%, 0%, 63%) | — | |
| HSV | hsv(272, 32%, 37%) | — | |
| HWB | hwb(272 25% 63%) | color: hwb(272 25% 63%) | |
| OKLCH | oklch(0.4007 0.0532 308.45) | color: oklch(0.4007 0.0532 308.45) | |
| Lab | lab(29.86 13.5 -15.2) | color: lab(29.86 13.5 -15.2) | |
| LCH | lch(29.86 20.33 311.61) | color: lch(29.86 20.33 311.61) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#494957 — rgb(73, 73, 87)
Deuteranopia (Green-blind)
#4A4B55 — rgb(74, 75, 85)
Tritanopia (Blue-blind)
#4F5150 — rgb(79, 81, 80)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 19%, 31%);
text
color: hsl(271, 19%, 31%);
border
border: 2px solid hsl(271, 19%, 31%);
gradient light
background: linear-gradient(to right, hsl(271, 19%, 51%), hsl(271, 19%, 31%));
gradient dark
background: linear-gradient(to right, hsl(271, 19%, 31%), hsl(271, 19%, 11%))
hex
background-color: #50405E;
tailwind
bg-[hsl(271,19%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 19%, 31%, 0.4);
css variable
--color-primary: hsl(271, 19%, 31%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 19%, 31%)?
HEX: #50405E | RGB: rgb(80, 64, 94) | CMYK: 15%, 32%, 0%, 63% | HSV: 272°, 32%, 37%. Copy any format from the conversion table above.
What colors go well with #50405E?
The complementary color is HSL(91, 19%, 31%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 19%, 31%) in CSS?
As HSL: color: hsl(271, 19%, 31%); — As HEX: color: #50405E; — As RGB: color: rgb(80, 64, 94); — Tailwind CSS: bg-[hsl(271,19%,31%)] — CSS variable: --color-primary: hsl(271, 19%, 31%);