HSL(297, 43%, 1%)

Very Dark Purple — Purple color

Adjust Color

Color Information

Color Name

Very Dark Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(297,43%,1%)]

Color Conversions

Format Value CSS Usage
HSL hsl(297, 43%, 1%) color: hsl(297, 43%, 1%)
HEX #040104 color: #040104
RGB rgb(4, 1, 4) color: rgb(4, 1, 4)
CMYK cmyk(0%, 75%, 0%, 98%)
HSV hsv(300, 75%, 2%)
HWB hwb(300 1% 98%) color: hwb(300 1% 98%)
OKLCH oklch(0.0852 0.0214 327.25) color: oklch(0.0852 0.0214 327.25)
Lab lab(0.51 1.2 -0.86) color: lab(0.51 1.2 -0.86)
LCH lch(0.51 1.48 324.37) color: lch(0.51 1.48 324.37)

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 20.77:1
vs Black 1.01: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)

#030303 — rgb(3, 3, 3)

Deuteranopia (Green-blind)

#030303 — rgb(3, 3, 3)

Tritanopia (Blue-blind)

#040303 — rgb(4, 3, 3)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(297, 43%, 1%);

text

color: hsl(297, 43%, 1%);

border

border: 2px solid hsl(297, 43%, 1%);

gradient light

background: linear-gradient(to right, hsl(297, 43%, 21%), hsl(297, 43%, 1%));

gradient dark

background: linear-gradient(to right, hsl(297, 43%, 1%), hsl(297, 43%, 0%))

hex

background-color: #040104;

tailwind

bg-[hsl(297,43%,1%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(297, 43%, 1%, 0.4);

css variable

--color-primary: hsl(297, 43%, 1%);

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(297, 43%, 1%)?

HEX: #040104 | RGB: rgb(4, 1, 4) | CMYK: 0%, 75%, 0%, 98% | HSV: 300°, 75%, 2%. Copy any format from the conversion table above.

What colors go well with #040104?

The complementary color is HSL(117, 43%, 1%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(297, 43%, 1%) in CSS?

As HSL: color: hsl(297, 43%, 1%); — As HEX: color: #040104; — As RGB: color: rgb(4, 1, 4); — Tailwind CSS: bg-[hsl(297,43%,1%)] — CSS variable: --color-primary: hsl(297, 43%, 1%);