HSL(271, 90%, 17%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,90%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 90%, 17%) | color: hsl(271, 90%, 17%) | |
| HEX | #2D0452 | color: #2D0452 | |
| RGB | rgb(45, 4, 82) | color: rgb(45, 4, 82) | |
| CMYK | cmyk(45%, 95%, 0%, 68%) | — | |
| HSV | hsv(272, 95%, 32%) | — | |
| HWB | hwb(272 2% 68%) | color: hwb(272 2% 68%) | |
| OKLCH | oklch(0.2489 0.1251 300.66) | color: oklch(0.2489 0.1251 300.66) | |
| Lab | lab(10.95 35.42 -37.59) | color: lab(10.95 35.42 -37.59) | |
| LCH | lch(10.95 51.65 313.3) | color: lch(10.95 51.65 313.3) |
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)
#1B1B3F — rgb(27, 27, 63)
Deuteranopia (Green-blind)
#1E213B — rgb(30, 33, 59)
Tritanopia (Blue-blind)
#2B302D — rgb(43, 48, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 90%, 17%);
text
color: hsl(271, 90%, 17%);
border
border: 2px solid hsl(271, 90%, 17%);
gradient light
background: linear-gradient(to right, hsl(271, 90%, 37%), hsl(271, 90%, 17%));
gradient dark
background: linear-gradient(to right, hsl(271, 90%, 17%), hsl(271, 90%, 0%))
hex
background-color: #2D0452;
tailwind
bg-[hsl(271,90%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 90%, 17%, 0.4);
css variable
--color-primary: hsl(271, 90%, 17%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 90%, 17%)?
HEX: #2D0452 | RGB: rgb(45, 4, 82) | CMYK: 45%, 95%, 0%, 68% | HSV: 272°, 95%, 32%. Copy any format from the conversion table above.
What colors go well with #2D0452?
The complementary color is HSL(91, 90%, 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, 90%, 17%) in CSS?
As HSL: color: hsl(271, 90%, 17%); — As HEX: color: #2D0452; — As RGB: color: rgb(45, 4, 82); — Tailwind CSS: bg-[hsl(271,90%,17%)] — CSS variable: --color-primary: hsl(271, 90%, 17%);