HSL(340, 42%, 16%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(340,42%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(340, 42%, 16%) | color: hsl(340, 42%, 16%) | |
| HEX | #3A1823 | color: #3A1823 | |
| RGB | rgb(58, 24, 35) | color: rgb(58, 24, 35) | |
| CMYK | cmyk(0%, 59%, 40%, 77%) | — | |
| HSV | hsv(341, 59%, 23%) | — | |
| HWB | hwb(341 9% 77%) | color: hwb(341 9% 77%) | |
| OKLCH | oklch(0.263 0.0555 1.14) | color: oklch(0.263 0.0555 1.14) | |
| Lab | lab(13.68 18.26 0.33) | color: lab(13.68 18.26 0.33) | |
| LCH | lch(13.68 18.26 1.04) | color: lch(13.68 18.26 1.04) |
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)
#2B2B20 — rgb(43, 43, 32)
Deuteranopia (Green-blind)
#2D3020 — rgb(45, 48, 32)
Tritanopia (Blue-blind)
#381E1E — rgb(56, 30, 30)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(340, 42%, 16%);
text
color: hsl(340, 42%, 16%);
border
border: 2px solid hsl(340, 42%, 16%);
gradient light
background: linear-gradient(to right, hsl(340, 42%, 36%), hsl(340, 42%, 16%));
gradient dark
background: linear-gradient(to right, hsl(340, 42%, 16%), hsl(340, 42%, 0%))
hex
background-color: #3A1823;
tailwind
bg-[hsl(340,42%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(340, 42%, 16%, 0.4);
css variable
--color-primary: hsl(340, 42%, 16%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(340, 42%, 16%)?
HEX: #3A1823 | RGB: rgb(58, 24, 35) | CMYK: 0%, 59%, 40%, 77% | HSV: 341°, 59%, 23%. Copy any format from the conversion table above.
What colors go well with #3A1823?
The complementary color is HSL(160, 42%, 16%). For a triadic harmony, use hues 340°, 100°, and 220°. For analogous combinations, try hues 310° and 10°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(340, 42%, 16%) in CSS?
As HSL: color: hsl(340, 42%, 16%); — As HEX: color: #3A1823; — As RGB: color: rgb(58, 24, 35); — Tailwind CSS: bg-[hsl(340,42%,16%)] — CSS variable: --color-primary: hsl(340, 42%, 16%);