HSL(271, 72%, 17%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,72%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 72%, 17%) | color: hsl(271, 72%, 17%) | |
| HEX | #2C0C4B | color: #2C0C4B | |
| RGB | rgb(44, 12, 75) | color: rgb(44, 12, 75) | |
| CMYK | cmyk(41%, 84%, 0%, 71%) | — | |
| HSV | hsv(270, 84%, 29%) | — | |
| HWB | hwb(270 5% 71%) | color: hwb(270 5% 71%) | |
| OKLCH | oklch(0.249 0.1082 301.96) | color: oklch(0.249 0.1082 301.96) | |
| Lab | lab(11.32 29.74 -32.16) | color: lab(11.32 29.74 -32.16) | |
| LCH | lch(11.32 43.8 312.76) | color: lch(11.32 43.8 312.76) |
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)
#1E1E3C — rgb(30, 30, 60)
Deuteranopia (Green-blind)
#202238 — rgb(32, 34, 56)
Tritanopia (Blue-blind)
#2A302D — rgb(42, 48, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 72%, 17%);
text
color: hsl(271, 72%, 17%);
border
border: 2px solid hsl(271, 72%, 17%);
gradient light
background: linear-gradient(to right, hsl(271, 72%, 37%), hsl(271, 72%, 17%));
gradient dark
background: linear-gradient(to right, hsl(271, 72%, 17%), hsl(271, 72%, 0%))
hex
background-color: #2C0C4B;
tailwind
bg-[hsl(271,72%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 72%, 17%, 0.4);
css variable
--color-primary: hsl(271, 72%, 17%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 72%, 17%)?
HEX: #2C0C4B | RGB: rgb(44, 12, 75) | CMYK: 41%, 84%, 0%, 71% | HSV: 270°, 84%, 29%. Copy any format from the conversion table above.
What colors go well with #2C0C4B?
The complementary color is HSL(91, 72%, 17%). 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, 72%, 17%) in CSS?
As HSL: color: hsl(271, 72%, 17%); — As HEX: color: #2C0C4B; — As RGB: color: rgb(44, 12, 75); — Tailwind CSS: bg-[hsl(271,72%,17%)] — CSS variable: --color-primary: hsl(271, 72%, 17%);