HSL(2, 20%, 17%)

Red — Red color

Adjust Color

Color Information

Color Name

Red

Color Family

Red

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(2,20%,17%)]

Color Conversions

Format Value CSS Usage
HSL hsl(2, 20%, 17%) color: hsl(2, 20%, 17%)
HEX #342323 color: #342323
RGB rgb(52, 35, 35) color: rgb(52, 35, 35)
CMYK cmyk(0%, 33%, 33%, 80%)
HSV hsv(0, 33%, 20%)
HWB hwb(0 13% 80%) color: hwb(0 13% 80%)
OKLCH oklch(0.2769 0.0262 18.87) color: oklch(0.2769 0.0262 18.87)
Lab lab(15.77 8.13 3.22) color: lab(15.77 8.13 3.22)
LCH lch(15.77 8.74 21.61) color: lch(15.77 8.74 21.61)

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.89:1
vs Black 1.41: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)

#2D2C23 — rgb(45, 44, 35)

Deuteranopia (Green-blind)

#2E2F23 — rgb(46, 47, 35)

Tritanopia (Blue-blind)

#332323 — rgb(51, 35, 35)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(2, 20%, 17%);

text

color: hsl(2, 20%, 17%);

border

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

gradient light

background: linear-gradient(to right, hsl(2, 20%, 37%), hsl(2, 20%, 17%));

gradient dark

background: linear-gradient(to right, hsl(2, 20%, 17%), hsl(2, 20%, 0%))

hex

background-color: #342323;

tailwind

bg-[hsl(2,20%,17%)]

box shadow

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

css variable

--color-primary: hsl(2, 20%, 17%);

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(2, 20%, 17%)?

HEX: #342323 | RGB: rgb(52, 35, 35) | CMYK: 0%, 33%, 33%, 80% | HSV: 0°, 33%, 20%. Copy any format from the conversion table above.

What colors go well with #342323?

The complementary color is HSL(182, 20%, 17%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(2, 20%, 17%) in CSS?

As HSL: color: hsl(2, 20%, 17%); — As HEX: color: #342323; — As RGB: color: rgb(52, 35, 35); — Tailwind CSS: bg-[hsl(2,20%,17%)] — CSS variable: --color-primary: hsl(2, 20%, 17%);