HSL(12, 17%, 21%)

Red — Red color

Adjust Color

Color Information

Color Name

Red

Color Family

Red

Warm / Cool

🔴 Warm

Temperature

N/A

CSS Class

bg-[hsl(12,17%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(12, 17%, 21%) color: hsl(12, 17%, 21%)
HEX #3F302C color: #3F302C
RGB rgb(63, 48, 44) color: rgb(63, 48, 44)
CMYK cmyk(0%, 24%, 30%, 75%)
HSV hsv(13, 30%, 25%)
HWB hwb(13 18% 75%) color: hwb(13 18% 75%)
OKLCH oklch(0.3248 0.0231 35.39) color: oklch(0.3248 0.0231 35.39)
Lab lab(21.4 6.09 5.16) color: lab(21.4 6.09 5.16)
LCH lch(21.4 7.98 40.27) color: lch(21.4 7.98 40.27)

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 12.57:1
vs Black 1.67: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)

#39382D — rgb(57, 56, 45)

Deuteranopia (Green-blind)

#393B2D — rgb(57, 59, 45)

Tritanopia (Blue-blind)

#3E2E2E — rgb(62, 46, 46)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(12, 17%, 21%);

text

color: hsl(12, 17%, 21%);

border

border: 2px solid hsl(12, 17%, 21%);

gradient light

background: linear-gradient(to right, hsl(12, 17%, 41%), hsl(12, 17%, 21%));

gradient dark

background: linear-gradient(to right, hsl(12, 17%, 21%), hsl(12, 17%, 1%))

hex

background-color: #3F302C;

tailwind

bg-[hsl(12,17%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(12, 17%, 21%, 0.4);

css variable

--color-primary: hsl(12, 17%, 21%);

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(12, 17%, 21%)?

HEX: #3F302C | RGB: rgb(63, 48, 44) | CMYK: 0%, 24%, 30%, 75% | HSV: 13°, 30%, 25%. Copy any format from the conversion table above.

What colors go well with #3F302C?

The complementary color is HSL(192, 17%, 21%). For a triadic harmony, use hues 12°, 132°, and 252°. For analogous combinations, try hues 342° and 42°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(12, 17%, 21%) in CSS?

As HSL: color: hsl(12, 17%, 21%); — As HEX: color: #3F302C; — As RGB: color: rgb(63, 48, 44); — Tailwind CSS: bg-[hsl(12,17%,21%)] — CSS variable: --color-primary: hsl(12, 17%, 21%);