HSL(312, 58%, 13%)

Very Dark Purple — Purple color

Adjust Color

Color Information

Color Name

Very Dark Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(312,58%,13%)]

Color Conversions

Format Value CSS Usage
HSL hsl(312, 58%, 13%) color: hsl(312, 58%, 13%)
HEX #340E2D color: #340E2D
RGB rgb(52, 14, 45) color: rgb(52, 14, 45)
CMYK cmyk(0%, 73%, 13%, 80%)
HSV hsv(311, 73%, 20%)
HWB hwb(311 5% 80%) color: hwb(311 5% 80%)
OKLCH oklch(0.2409 0.0754 335.59) color: oklch(0.2409 0.0754 335.59)
Lab lab(10.8 23.57 -11.47) color: lab(10.8 23.57 -11.47)
LCH lch(10.8 26.21 334.05) color: lch(10.8 26.21 334.05)

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 16.84:1
vs Black 1.25: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)

#242325 — rgb(36, 35, 37)

Deuteranopia (Green-blind)

#262924 — rgb(38, 41, 36)

Tritanopia (Blue-blind)

#32201E — rgb(50, 32, 30)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(312, 58%, 13%);

text

color: hsl(312, 58%, 13%);

border

border: 2px solid hsl(312, 58%, 13%);

gradient light

background: linear-gradient(to right, hsl(312, 58%, 33%), hsl(312, 58%, 13%));

gradient dark

background: linear-gradient(to right, hsl(312, 58%, 13%), hsl(312, 58%, 0%))

hex

background-color: #340E2D;

tailwind

bg-[hsl(312,58%,13%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(312, 58%, 13%, 0.4);

css variable

--color-primary: hsl(312, 58%, 13%);

Related Colors

Use Cases for Very Dark Purple

Luxury brands Creative agencies Beauty products Royalty themes Premium badges

Frequently Asked Questions

What are all the color codes for HSL(312, 58%, 13%)?

HEX: #340E2D | RGB: rgb(52, 14, 45) | CMYK: 0%, 73%, 13%, 80% | HSV: 311°, 73%, 20%. Copy any format from the conversion table above.

What colors go well with #340E2D?

The complementary color is HSL(132, 58%, 13%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(312, 58%, 13%) in CSS?

As HSL: color: hsl(312, 58%, 13%); — As HEX: color: #340E2D; — As RGB: color: rgb(52, 14, 45); — Tailwind CSS: bg-[hsl(312,58%,13%)] — CSS variable: --color-primary: hsl(312, 58%, 13%);