HSL(357, 20%, 16%)

Red — Red color

Adjust Color

Color Information

Color Name

Red

Color Family

Red

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(357,20%,16%)]

Color Conversions

Format Value CSS Usage
HSL hsl(357, 20%, 16%) color: hsl(357, 20%, 16%)
HEX #312121 color: #312121
RGB rgb(49, 33, 33) color: rgb(49, 33, 33)
CMYK cmyk(0%, 33%, 33%, 81%)
HSV hsv(0, 33%, 19%)
HWB hwb(0 13% 81%) color: hwb(0 13% 81%)
OKLCH oklch(0.2674 0.0248 18.84) color: oklch(0.2674 0.0248 18.84)
Lab lab(14.68 7.71 3.05) color: lab(14.68 7.71 3.05)
LCH lch(14.68 8.29 21.58) color: lch(14.68 8.29 21.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 15.33:1
vs Black 1.37: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)

#2A2A21 — rgb(42, 42, 33)

Deuteranopia (Green-blind)

#2B2C21 — rgb(43, 44, 33)

Tritanopia (Blue-blind)

#302121 — rgb(48, 33, 33)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(357, 20%, 16%);

text

color: hsl(357, 20%, 16%);

border

border: 2px solid hsl(357, 20%, 16%);

gradient light

background: linear-gradient(to right, hsl(357, 20%, 36%), hsl(357, 20%, 16%));

gradient dark

background: linear-gradient(to right, hsl(357, 20%, 16%), hsl(357, 20%, 0%))

hex

background-color: #312121;

tailwind

bg-[hsl(357,20%,16%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(357, 20%, 16%, 0.4);

css variable

--color-primary: hsl(357, 20%, 16%);

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(357, 20%, 16%)?

HEX: #312121 | RGB: rgb(49, 33, 33) | CMYK: 0%, 33%, 33%, 81% | HSV: 0°, 33%, 19%. Copy any format from the conversion table above.

What colors go well with #312121?

The complementary color is HSL(177, 20%, 16%). For a triadic harmony, use hues 357°, 117°, and 237°. For analogous combinations, try hues 327° and 27°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(357, 20%, 16%) in CSS?

As HSL: color: hsl(357, 20%, 16%); — As HEX: color: #312121; — As RGB: color: rgb(49, 33, 33); — Tailwind CSS: bg-[hsl(357,20%,16%)] — CSS variable: --color-primary: hsl(357, 20%, 16%);