HSL(345, 70%, 40%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(345,70%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(345, 70%, 40%) | color: hsl(345, 70%, 40%) | |
| HEX | #AD1F42 | color: #AD1F42 | |
| RGB | rgb(173, 31, 66) | color: rgb(173, 31, 66) | |
| CMYK | cmyk(0%, 82%, 62%, 32%) | — | |
| HSV | hsv(345, 82%, 68%) | — | |
| HWB | hwb(345 12% 32%) | color: hwb(345 12% 32%) | |
| OKLCH | oklch(0.4905 0.1757 13.6) | color: oklch(0.4905 0.1757 13.6) | |
| Lab | lab(38.31 56.78 16.9) | color: lab(38.31 56.78 16.9) | |
| LCH | lch(38.31 59.24 16.58) | color: lch(38.31 59.24 16.58) |
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)
#706E3A — rgb(112, 110, 58)
Deuteranopia (Green-blind)
#788238 — rgb(120, 130, 56)
Tritanopia (Blue-blind)
#A63331 — rgb(166, 51, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(345, 70%, 40%);
text
color: hsl(345, 70%, 40%);
border
border: 2px solid hsl(345, 70%, 40%);
gradient light
background: linear-gradient(to right, hsl(345, 70%, 60%), hsl(345, 70%, 40%));
gradient dark
background: linear-gradient(to right, hsl(345, 70%, 40%), hsl(345, 70%, 20%))
hex
background-color: #AD1F42;
tailwind
bg-[hsl(345,70%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(345, 70%, 40%, 0.4);
css variable
--color-primary: hsl(345, 70%, 40%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(345, 70%, 40%)?
HEX: #AD1F42 | RGB: rgb(173, 31, 66) | CMYK: 0%, 82%, 62%, 32% | HSV: 345°, 82%, 68%. Copy any format from the conversion table above.
What colors go well with #AD1F42?
The complementary color is HSL(165, 70%, 40%). 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, 70%, 40%) in CSS?
As HSL: color: hsl(345, 70%, 40%); — As HEX: color: #AD1F42; — As RGB: color: rgb(173, 31, 66); — Tailwind CSS: bg-[hsl(345,70%,40%)] — CSS variable: --color-primary: hsl(345, 70%, 40%);