HSL(101, 58%, 2%)

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(101,58%,2%)]

Color Conversions

Format Value CSS Usage
HSL hsl(101, 58%, 2%) color: hsl(101, 58%, 2%)
HEX #040802 color: #040802
RGB rgb(4, 8, 2) color: rgb(4, 8, 2)
CMYK cmyk(50%, 0%, 75%, 97%)
HSV hsv(100, 75%, 3%)
HWB hwb(100 1% 97%) color: hwb(100 1% 97%)
OKLCH oklch(0.1249 0.022 133.14) color: oklch(0.1249 0.022 133.14)
Lab lab(1.84 -1.88 1.9) color: lab(1.84 -1.88 1.9)
LCH lch(1.84 2.67 134.7) color: lch(1.84 2.67 134.7)

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.18:1
vs Black 1.04: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)

#060603 — rgb(6, 6, 3)

Deuteranopia (Green-blind)

#060504 — rgb(6, 5, 4)

Tritanopia (Blue-blind)

#040505 — rgb(4, 5, 5)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(101, 58%, 2%);

text

color: hsl(101, 58%, 2%);

border

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

gradient light

background: linear-gradient(to right, hsl(101, 58%, 22%), hsl(101, 58%, 2%));

gradient dark

background: linear-gradient(to right, hsl(101, 58%, 2%), hsl(101, 58%, 0%))

hex

background-color: #040802;

tailwind

bg-[hsl(101,58%,2%)]

box shadow

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

css variable

--color-primary: hsl(101, 58%, 2%);

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(101, 58%, 2%)?

HEX: #040802 | RGB: rgb(4, 8, 2) | CMYK: 50%, 0%, 75%, 97% | HSV: 100°, 75%, 3%. Copy any format from the conversion table above.

What colors go well with #040802?

The complementary color is HSL(281, 58%, 2%). For a triadic harmony, use hues 101°, 221°, and 341°. For analogous combinations, try hues 71° and 131°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(101, 58%, 2%) in CSS?

As HSL: color: hsl(101, 58%, 2%); — As HEX: color: #040802; — As RGB: color: rgb(4, 8, 2); — Tailwind CSS: bg-[hsl(101,58%,2%)] — CSS variable: --color-primary: hsl(101, 58%, 2%);