HSL(272, 60%, 17%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(272,60%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(272, 60%, 17%) | color: hsl(272, 60%, 17%) | |
| HEX | #2D1145 | color: #2D1145 | |
| RGB | rgb(45, 17, 69) | color: rgb(45, 17, 69) | |
| CMYK | cmyk(35%, 75%, 0%, 73%) | — | |
| HSV | hsv(272, 75%, 27%) | — | |
| HWB | hwb(272 7% 73%) | color: hwb(272 7% 73%) | |
| OKLCH | oklch(0.2516 0.0941 305.28) | color: oklch(0.2516 0.0941 305.28) | |
| Lab | lab(11.88 25.62 -27.06) | color: lab(11.88 25.62 -27.06) | |
| LCH | lch(11.88 37.26 313.43) | color: lch(11.88 37.26 313.43) |
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)
#212138 — rgb(33, 33, 56)
Deuteranopia (Green-blind)
#232535 — rgb(35, 37, 53)
Tritanopia (Blue-blind)
#2C2E2C — rgb(44, 46, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(272, 60%, 17%);
text
color: hsl(272, 60%, 17%);
border
border: 2px solid hsl(272, 60%, 17%);
gradient light
background: linear-gradient(to right, hsl(272, 60%, 37%), hsl(272, 60%, 17%));
gradient dark
background: linear-gradient(to right, hsl(272, 60%, 17%), hsl(272, 60%, 0%))
hex
background-color: #2D1145;
tailwind
bg-[hsl(272,60%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(272, 60%, 17%, 0.4);
css variable
--color-primary: hsl(272, 60%, 17%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(272, 60%, 17%)?
HEX: #2D1145 | RGB: rgb(45, 17, 69) | CMYK: 35%, 75%, 0%, 73% | HSV: 272°, 75%, 27%. Copy any format from the conversion table above.
What colors go well with #2D1145?
The complementary color is HSL(92, 60%, 17%). For a triadic harmony, use hues 272°, 32°, and 152°. For analogous combinations, try hues 242° and 302°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(272, 60%, 17%) in CSS?
As HSL: color: hsl(272, 60%, 17%); — As HEX: color: #2D1145; — As RGB: color: rgb(45, 17, 69); — Tailwind CSS: bg-[hsl(272,60%,17%)] — CSS variable: --color-primary: hsl(272, 60%, 17%);