HSL(272, 44%, 16%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(272,44%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(272, 44%, 16%) | color: hsl(272, 44%, 16%) | |
| HEX | #2A173B | color: #2A173B | |
| RGB | rgb(42, 23, 59) | color: rgb(42, 23, 59) | |
| CMYK | cmyk(29%, 61%, 0%, 77%) | — | |
| HSV | hsv(272, 61%, 23%) | — | |
| HWB | hwb(272 9% 77%) | color: hwb(272 9% 77%) | |
| OKLCH | oklch(0.2498 0.0687 306.44) | color: oklch(0.2498 0.0687 306.44) | |
| Lab | lab(12.1 18.09 -19.68) | color: lab(12.1 18.09 -19.68) | |
| LCH | lch(12.1 26.73 312.59) | color: lch(12.1 26.73 312.59) |
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)
#222232 — rgb(34, 34, 50)
Deuteranopia (Green-blind)
#232430 — rgb(35, 36, 48)
Tritanopia (Blue-blind)
#292B2A — rgb(41, 43, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(272, 44%, 16%);
text
color: hsl(272, 44%, 16%);
border
border: 2px solid hsl(272, 44%, 16%);
gradient light
background: linear-gradient(to right, hsl(272, 44%, 36%), hsl(272, 44%, 16%));
gradient dark
background: linear-gradient(to right, hsl(272, 44%, 16%), hsl(272, 44%, 0%))
hex
background-color: #2A173B;
tailwind
bg-[hsl(272,44%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(272, 44%, 16%, 0.4);
css variable
--color-primary: hsl(272, 44%, 16%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(272, 44%, 16%)?
HEX: #2A173B | RGB: rgb(42, 23, 59) | CMYK: 29%, 61%, 0%, 77% | HSV: 272°, 61%, 23%. Copy any format from the conversion table above.
What colors go well with #2A173B?
The complementary color is HSL(92, 44%, 16%). 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, 44%, 16%) in CSS?
As HSL: color: hsl(272, 44%, 16%); — As HEX: color: #2A173B; — As RGB: color: rgb(42, 23, 59); — Tailwind CSS: bg-[hsl(272,44%,16%)] — CSS variable: --color-primary: hsl(272, 44%, 16%);