HSL(281, 60%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(281,60%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(281, 60%, 21%) | color: hsl(281, 60%, 21%) | |
| HEX | #411556 | color: #411556 | |
| RGB | rgb(65, 21, 86) | color: rgb(65, 21, 86) | |
| CMYK | cmyk(24%, 76%, 0%, 66%) | — | |
| HSV | hsv(281, 76%, 34%) | — | |
| HWB | hwb(281 8% 66%) | color: hwb(281 8% 66%) | |
| OKLCH | oklch(0.3002 0.1153 312.56) | color: oklch(0.3002 0.1153 312.56) | |
| Lab | lab(17.14 32.89 -30.09) | color: lab(17.14 32.89 -30.09) | |
| LCH | lch(17.14 44.58 317.55) | color: lch(17.14 44.58 317.55) |
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)
#2E2E46 — rgb(46, 46, 70)
Deuteranopia (Green-blind)
#313443 — rgb(49, 52, 67)
Tritanopia (Blue-blind)
#3F3A37 — rgb(63, 58, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(281, 60%, 21%);
text
color: hsl(281, 60%, 21%);
border
border: 2px solid hsl(281, 60%, 21%);
gradient light
background: linear-gradient(to right, hsl(281, 60%, 41%), hsl(281, 60%, 21%));
gradient dark
background: linear-gradient(to right, hsl(281, 60%, 21%), hsl(281, 60%, 1%))
hex
background-color: #411556;
tailwind
bg-[hsl(281,60%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(281, 60%, 21%, 0.4);
css variable
--color-primary: hsl(281, 60%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(281, 60%, 21%)?
HEX: #411556 | RGB: rgb(65, 21, 86) | CMYK: 24%, 76%, 0%, 66% | HSV: 281°, 76%, 34%. Copy any format from the conversion table above.
What colors go well with #411556?
The complementary color is HSL(101, 60%, 21%). For a triadic harmony, use hues 281°, 41°, and 161°. For analogous combinations, try hues 251° and 311°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(281, 60%, 21%) in CSS?
As HSL: color: hsl(281, 60%, 21%); — As HEX: color: #411556; — As RGB: color: rgb(65, 21, 86); — Tailwind CSS: bg-[hsl(281,60%,21%)] — CSS variable: --color-primary: hsl(281, 60%, 21%);