HSL(345, 50%, 20%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(345,50%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(345, 50%, 20%) | color: hsl(345, 50%, 20%) | |
| HEX | #4D1A26 | color: #4D1A26 | |
| RGB | rgb(77, 26, 38) | color: rgb(77, 26, 38) | |
| CMYK | cmyk(0%, 66%, 51%, 70%) | — | |
| HSV | hsv(346, 66%, 30%) | — | |
| HWB | hwb(346 10% 70%) | color: hwb(346 10% 70%) | |
| OKLCH | oklch(0.3006 0.0778 8.55) | color: oklch(0.3006 0.0778 8.55) | |
| Lab | lab(17.72 25.31 4.44) | color: lab(17.72 25.31 4.44) | |
| LCH | lch(17.72 25.7 9.95) | color: lch(17.72 25.7 9.95) |
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)
#373623 — rgb(55, 54, 35)
Deuteranopia (Green-blind)
#3A3E22 — rgb(58, 62, 34)
Tritanopia (Blue-blind)
#4A2120 — rgb(74, 33, 32)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(345, 50%, 20%);
text
color: hsl(345, 50%, 20%);
border
border: 2px solid hsl(345, 50%, 20%);
gradient light
background: linear-gradient(to right, hsl(345, 50%, 40%), hsl(345, 50%, 20%));
gradient dark
background: linear-gradient(to right, hsl(345, 50%, 20%), hsl(345, 50%, 0%))
hex
background-color: #4D1A26;
tailwind
bg-[hsl(345,50%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(345, 50%, 20%, 0.4);
css variable
--color-primary: hsl(345, 50%, 20%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(345, 50%, 20%)?
HEX: #4D1A26 | RGB: rgb(77, 26, 38) | CMYK: 0%, 66%, 51%, 70% | HSV: 346°, 66%, 30%. Copy any format from the conversion table above.
What colors go well with #4D1A26?
The complementary color is HSL(165, 50%, 20%). For a triadic harmony, use hues 345°, 105°, and 225°. For analogous combinations, try hues 315° and 15°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(345, 50%, 20%) in CSS?
As HSL: color: hsl(345, 50%, 20%); — As HEX: color: #4D1A26; — As RGB: color: rgb(77, 26, 38); — Tailwind CSS: bg-[hsl(345,50%,20%)] — CSS variable: --color-primary: hsl(345, 50%, 20%);