HSL(126, 54%, 3%)

Very Dark Green — Green color

Adjust Color

Color Information

Color Name

Very Dark Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(126,54%,3%)]

Color Conversions

Format Value CSS Usage
HSL hsl(126, 54%, 3%) color: hsl(126, 54%, 3%)
HEX #040C04 color: #040C04
RGB rgb(4, 12, 4) color: rgb(4, 12, 4)
CMYK cmyk(67%, 0%, 67%, 95%)
HSV hsv(120, 67%, 5%)
HWB hwb(120 2% 95%) color: hwb(120 2% 95%)
OKLCH oklch(0.1412 0.0251 144.1) color: oklch(0.1412 0.0251 144.1)
Lab lab(2.69 -3.25 2.32) color: lab(2.69 -3.25 2.32)
LCH lch(2.69 3.99 144.48) color: lch(2.69 3.99 144.48)

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 19.82:1
vs Black 1.06: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)

#070806 — rgb(7, 8, 6)

Deuteranopia (Green-blind)

#070606 — rgb(7, 6, 6)

Tritanopia (Blue-blind)

#040708 — rgb(4, 7, 8)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(126, 54%, 3%);

text

color: hsl(126, 54%, 3%);

border

border: 2px solid hsl(126, 54%, 3%);

gradient light

background: linear-gradient(to right, hsl(126, 54%, 23%), hsl(126, 54%, 3%));

gradient dark

background: linear-gradient(to right, hsl(126, 54%, 3%), hsl(126, 54%, 0%))

hex

background-color: #040C04;

tailwind

bg-[hsl(126,54%,3%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(126, 54%, 3%, 0.4);

css variable

--color-primary: hsl(126, 54%, 3%);

Related Colors

Use Cases for Very Dark Green

Success states Eco/nature brands Finance apps Health apps Confirm buttons

Frequently Asked Questions

What are all the color codes for HSL(126, 54%, 3%)?

HEX: #040C04 | RGB: rgb(4, 12, 4) | CMYK: 67%, 0%, 67%, 95% | HSV: 120°, 67%, 5%. Copy any format from the conversion table above.

What colors go well with #040C04?

The complementary color is HSL(306, 54%, 3%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(126, 54%, 3%) in CSS?

As HSL: color: hsl(126, 54%, 3%); — As HEX: color: #040C04; — As RGB: color: rgb(4, 12, 4); — Tailwind CSS: bg-[hsl(126,54%,3%)] — CSS variable: --color-primary: hsl(126, 54%, 3%);