HSL(342, 29%, 15%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(342,29%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 29%, 15%) | color: hsl(342, 29%, 15%) | |
| HEX | #311B22 | color: #311B22 | |
| RGB | rgb(49, 27, 34) | color: rgb(49, 27, 34) | |
| CMYK | cmyk(0%, 45%, 31%, 81%) | — | |
| HSV | hsv(341, 45%, 19%) | — | |
| HWB | hwb(341 10% 81%) | color: hwb(341 10% 81%) | |
| OKLCH | oklch(0.2542 0.0364 359.46) | color: oklch(0.2542 0.0364 359.46) | |
| Lab | lab(12.94 12.08 -0.19) | color: lab(12.94 12.08 -0.19) | |
| LCH | lch(12.94 12.08 359.1) | color: lch(12.94 12.08 359.1) |
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)
#272720 — rgb(39, 39, 32)
Deuteranopia (Green-blind)
#292A20 — rgb(41, 42, 32)
Tritanopia (Blue-blind)
#301F1F — rgb(48, 31, 31)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 29%, 15%);
text
color: hsl(342, 29%, 15%);
border
border: 2px solid hsl(342, 29%, 15%);
gradient light
background: linear-gradient(to right, hsl(342, 29%, 35%), hsl(342, 29%, 15%));
gradient dark
background: linear-gradient(to right, hsl(342, 29%, 15%), hsl(342, 29%, 0%))
hex
background-color: #311B22;
tailwind
bg-[hsl(342,29%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 29%, 15%, 0.4);
css variable
--color-primary: hsl(342, 29%, 15%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(342, 29%, 15%)?
HEX: #311B22 | RGB: rgb(49, 27, 34) | CMYK: 0%, 45%, 31%, 81% | HSV: 341°, 45%, 19%. Copy any format from the conversion table above.
What colors go well with #311B22?
The complementary color is HSL(162, 29%, 15%). For a triadic harmony, use hues 342°, 102°, and 222°. For analogous combinations, try hues 312° and 12°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(342, 29%, 15%) in CSS?
As HSL: color: hsl(342, 29%, 15%); — As HEX: color: #311B22; — As RGB: color: rgb(49, 27, 34); — Tailwind CSS: bg-[hsl(342,29%,15%)] — CSS variable: --color-primary: hsl(342, 29%, 15%);