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

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 6.88:1
vs Black 3.05:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

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

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

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

Alerts & errors Call-to-action buttons Brand logos Sale badges Warning messages

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%);