HSL(271, 30%, 16%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,30%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 30%, 16%) | color: hsl(271, 30%, 16%) | |
| HEX | #291D35 | color: #291D35 | |
| RGB | rgb(41, 29, 53) | color: rgb(41, 29, 53) | |
| CMYK | cmyk(23%, 45%, 0%, 79%) | — | |
| HSV | hsv(270, 45%, 21%) | — | |
| HWB | hwb(270 12% 79%) | color: hwb(270 12% 79%) | |
| OKLCH | oklch(0.2571 0.0466 306.37) | color: oklch(0.2571 0.0466 306.37) | |
| Lab | lab(13.27 11.77 -13.56) | color: lab(13.27 11.77 -13.56) | |
| LCH | lch(13.27 17.96 310.96) | color: lch(13.27 17.96 310.96) |
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)
#24242F — rgb(36, 36, 47)
Deuteranopia (Green-blind)
#25252E — rgb(37, 37, 46)
Tritanopia (Blue-blind)
#282B2A — rgb(40, 43, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 30%, 16%);
text
color: hsl(271, 30%, 16%);
border
border: 2px solid hsl(271, 30%, 16%);
gradient light
background: linear-gradient(to right, hsl(271, 30%, 36%), hsl(271, 30%, 16%));
gradient dark
background: linear-gradient(to right, hsl(271, 30%, 16%), hsl(271, 30%, 0%))
hex
background-color: #291D35;
tailwind
bg-[hsl(271,30%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 30%, 16%, 0.4);
css variable
--color-primary: hsl(271, 30%, 16%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 30%, 16%)?
HEX: #291D35 | RGB: rgb(41, 29, 53) | CMYK: 23%, 45%, 0%, 79% | HSV: 270°, 45%, 21%. Copy any format from the conversion table above.
What colors go well with #291D35?
The complementary color is HSL(91, 30%, 16%). 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, 30%, 16%) in CSS?
As HSL: color: hsl(271, 30%, 16%); — As HEX: color: #291D35; — As RGB: color: rgb(41, 29, 53); — Tailwind CSS: bg-[hsl(271,30%,16%)] — CSS variable: --color-primary: hsl(271, 30%, 16%);