HSL(256, 41%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(256,41%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(256, 41%, 20%) | color: hsl(256, 41%, 20%) | |
| HEX | #291E48 | color: #291E48 | |
| RGB | rgb(41, 30, 72) | color: rgb(41, 30, 72) | |
| CMYK | cmyk(43%, 58%, 0%, 72%) | — | |
| HSV | hsv(256, 58%, 28%) | — | |
| HWB | hwb(256 12% 72%) | color: hwb(256 12% 72%) | |
| OKLCH | oklch(0.2723 0.0754 292.77) | color: oklch(0.2723 0.0754 292.77) | |
| Lab | lab(14.78 16.98 -24.52) | color: lab(14.78 16.98 -24.52) | |
| LCH | lch(14.78 29.83 304.7) | color: lch(14.78 29.83 304.7) |
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)
#24243E — rgb(36, 36, 62)
Deuteranopia (Green-blind)
#25263B — rgb(37, 38, 59)
Tritanopia (Blue-blind)
#283634 — rgb(40, 54, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(256, 41%, 20%);
text
color: hsl(256, 41%, 20%);
border
border: 2px solid hsl(256, 41%, 20%);
gradient light
background: linear-gradient(to right, hsl(256, 41%, 40%), hsl(256, 41%, 20%));
gradient dark
background: linear-gradient(to right, hsl(256, 41%, 20%), hsl(256, 41%, 0%))
hex
background-color: #291E48;
tailwind
bg-[hsl(256,41%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(256, 41%, 20%, 0.4);
css variable
--color-primary: hsl(256, 41%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(256, 41%, 20%)?
HEX: #291E48 | RGB: rgb(41, 30, 72) | CMYK: 43%, 58%, 0%, 72% | HSV: 256°, 58%, 28%. Copy any format from the conversion table above.
What colors go well with #291E48?
The complementary color is HSL(76, 41%, 20%). For a triadic harmony, use hues 256°, 16°, and 136°. For analogous combinations, try hues 226° and 286°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(256, 41%, 20%) in CSS?
As HSL: color: hsl(256, 41%, 20%); — As HEX: color: #291E48; — As RGB: color: rgb(41, 30, 72); — Tailwind CSS: bg-[hsl(256,41%,20%)] — CSS variable: --color-primary: hsl(256, 41%, 20%);