HSL(359, 40%, 18%)

Red — Red color

Adjust Color

Color Information

Color Name

Red

Color Family

Red

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(359,40%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(359, 40%, 18%) color: hsl(359, 40%, 18%)
HEX #401C1C color: #401C1C
RGB rgb(64, 28, 28) color: rgb(64, 28, 28)
CMYK cmyk(0%, 56%, 56%, 75%)
HSV hsv(0, 56%, 25%)
HWB hwb(0 11% 75%) color: hwb(0 11% 75%)
OKLCH oklch(0.2783 0.0562 21.34) color: oklch(0.2783 0.0562 21.34)
Lab lab(15.51 17.47 8.14) color: lab(15.51 17.47 8.14)
LCH lch(15.51 19.27 24.98) color: lch(15.51 19.27 24.98)

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 14.99:1
vs Black 1.4:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#30301C — rgb(48, 48, 28)

Deuteranopia (Green-blind)

#33351C — rgb(51, 53, 28)

Tritanopia (Blue-blind)

#3E1C1C — rgb(62, 28, 28)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(359, 40%, 18%);

text

color: hsl(359, 40%, 18%);

border

border: 2px solid hsl(359, 40%, 18%);

gradient light

background: linear-gradient(to right, hsl(359, 40%, 38%), hsl(359, 40%, 18%));

gradient dark

background: linear-gradient(to right, hsl(359, 40%, 18%), hsl(359, 40%, 0%))

hex

background-color: #401C1C;

tailwind

bg-[hsl(359,40%,18%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(359, 40%, 18%, 0.4);

css variable

--color-primary: hsl(359, 40%, 18%);

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(359, 40%, 18%)?

HEX: #401C1C | RGB: rgb(64, 28, 28) | CMYK: 0%, 56%, 56%, 75% | HSV: 0°, 56%, 25%. Copy any format from the conversion table above.

What colors go well with #401C1C?

The complementary color is HSL(179, 40%, 18%). For a triadic harmony, use hues 359°, 119°, and 239°. For analogous combinations, try hues 329° and 29°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(359, 40%, 18%) in CSS?

As HSL: color: hsl(359, 40%, 18%); — As HEX: color: #401C1C; — As RGB: color: rgb(64, 28, 28); — Tailwind CSS: bg-[hsl(359,40%,18%)] — CSS variable: --color-primary: hsl(359, 40%, 18%);