HSL(284, 20%, 16%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(284,20%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(284, 20%, 16%) | color: hsl(284, 20%, 16%) | |
| HEX | #2D2131 | color: #2D2131 | |
| RGB | rgb(45, 33, 49) | color: rgb(45, 33, 49) | |
| CMYK | cmyk(8%, 33%, 0%, 81%) | — | |
| HSV | hsv(285, 33%, 19%) | — | |
| HWB | hwb(285 13% 81%) | color: hwb(285 13% 81%) | |
| OKLCH | oklch(0.269 0.0336 317.55) | color: oklch(0.269 0.0336 317.55) | |
| Lab | lab(14.78 9.42 -8.34) | color: lab(14.78 9.42 -8.34) | |
| LCH | lch(14.78 12.58 318.48) | color: lch(14.78 12.58 318.48) |
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)
#28282D — rgb(40, 40, 45)
Deuteranopia (Green-blind)
#29292C — rgb(41, 41, 44)
Tritanopia (Blue-blind)
#2C2A29 — rgb(44, 42, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(284, 20%, 16%);
text
color: hsl(284, 20%, 16%);
border
border: 2px solid hsl(284, 20%, 16%);
gradient light
background: linear-gradient(to right, hsl(284, 20%, 36%), hsl(284, 20%, 16%));
gradient dark
background: linear-gradient(to right, hsl(284, 20%, 16%), hsl(284, 20%, 0%))
hex
background-color: #2D2131;
tailwind
bg-[hsl(284,20%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(284, 20%, 16%, 0.4);
css variable
--color-primary: hsl(284, 20%, 16%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(284, 20%, 16%)?
HEX: #2D2131 | RGB: rgb(45, 33, 49) | CMYK: 8%, 33%, 0%, 81% | HSV: 285°, 33%, 19%. Copy any format from the conversion table above.
What colors go well with #2D2131?
The complementary color is HSL(104, 20%, 16%). For a triadic harmony, use hues 284°, 44°, and 164°. For analogous combinations, try hues 254° and 314°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(284, 20%, 16%) in CSS?
As HSL: color: hsl(284, 20%, 16%); — As HEX: color: #2D2131; — As RGB: color: rgb(45, 33, 49); — Tailwind CSS: bg-[hsl(284,20%,16%)] — CSS variable: --color-primary: hsl(284, 20%, 16%);