HSL(271, 84%, 22%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,84%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 84%, 22%) | color: hsl(271, 84%, 22%) | |
| HEX | #3A0967 | color: #3A0967 | |
| RGB | rgb(58, 9, 103) | color: rgb(58, 9, 103) | |
| CMYK | cmyk(44%, 91%, 0%, 60%) | — | |
| HSV | hsv(271, 91%, 40%) | — | |
| HWB | hwb(271 4% 60%) | color: hwb(271 4% 60%) | |
| OKLCH | oklch(0.2937 0.1445 300.43) | color: oklch(0.2937 0.1445 300.43) | |
| Lab | lab(15.87 40.65 -43.54) | color: lab(15.87 40.65 -43.54) | |
| LCH | lch(15.87 59.57 313.03) | color: lch(15.87 59.57 313.03) |
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)
#252450 — rgb(37, 36, 80)
Deuteranopia (Green-blind)
#282B4B — rgb(40, 43, 75)
Tritanopia (Blue-blind)
#383E3A — rgb(56, 62, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 84%, 22%);
text
color: hsl(271, 84%, 22%);
border
border: 2px solid hsl(271, 84%, 22%);
gradient light
background: linear-gradient(to right, hsl(271, 84%, 42%), hsl(271, 84%, 22%));
gradient dark
background: linear-gradient(to right, hsl(271, 84%, 22%), hsl(271, 84%, 2%))
hex
background-color: #3A0967;
tailwind
bg-[hsl(271,84%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 84%, 22%, 0.4);
css variable
--color-primary: hsl(271, 84%, 22%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 84%, 22%)?
HEX: #3A0967 | RGB: rgb(58, 9, 103) | CMYK: 44%, 91%, 0%, 60% | HSV: 271°, 91%, 40%. Copy any format from the conversion table above.
What colors go well with #3A0967?
The complementary color is HSL(91, 84%, 22%). 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, 84%, 22%) in CSS?
As HSL: color: hsl(271, 84%, 22%); — As HEX: color: #3A0967; — As RGB: color: rgb(58, 9, 103); — Tailwind CSS: bg-[hsl(271,84%,22%)] — CSS variable: --color-primary: hsl(271, 84%, 22%);