HSL(258, 60%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(258,60%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(258, 60%, 21%) | color: hsl(258, 60%, 21%) | |
| HEX | #291556 | color: #291556 | |
| RGB | rgb(41, 21, 86) | color: rgb(41, 21, 86) | |
| CMYK | cmyk(52%, 76%, 0%, 66%) | — | |
| HSV | hsv(258, 76%, 34%) | — | |
| HWB | hwb(258 8% 66%) | color: hwb(258 8% 66%) | |
| OKLCH | oklch(0.2682 0.1102 291.24) | color: oklch(0.2682 0.1102 291.24) | |
| Lab | lab(13.71 27.51 -35.82) | color: lab(13.71 27.51 -35.82) | |
| LCH | lch(13.71 45.16 307.52) | color: lch(13.71 45.16 307.52) |
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)
#202046 — rgb(32, 32, 70)
Deuteranopia (Green-blind)
#222343 — rgb(34, 35, 67)
Tritanopia (Blue-blind)
#283A37 — rgb(40, 58, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(258, 60%, 21%);
text
color: hsl(258, 60%, 21%);
border
border: 2px solid hsl(258, 60%, 21%);
gradient light
background: linear-gradient(to right, hsl(258, 60%, 41%), hsl(258, 60%, 21%));
gradient dark
background: linear-gradient(to right, hsl(258, 60%, 21%), hsl(258, 60%, 1%))
hex
background-color: #291556;
tailwind
bg-[hsl(258,60%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(258, 60%, 21%, 0.4);
css variable
--color-primary: hsl(258, 60%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(258, 60%, 21%)?
HEX: #291556 | RGB: rgb(41, 21, 86) | CMYK: 52%, 76%, 0%, 66% | HSV: 258°, 76%, 34%. Copy any format from the conversion table above.
What colors go well with #291556?
The complementary color is HSL(78, 60%, 21%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(258, 60%, 21%) in CSS?
As HSL: color: hsl(258, 60%, 21%); — As HEX: color: #291556; — As RGB: color: rgb(41, 21, 86); — Tailwind CSS: bg-[hsl(258,60%,21%)] — CSS variable: --color-primary: hsl(258, 60%, 21%);