HSL(108, 40%, 23%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(108,40%,23%)]

Color Conversions

Format Value CSS Usage
HSL hsl(108, 40%, 23%) color: hsl(108, 40%, 23%)
HEX #2D5223 color: #2D5223
RGB rgb(45, 82, 35) color: rgb(45, 82, 35)
CMYK cmyk(45%, 0%, 57%, 68%)
HSV hsv(107, 57%, 32%)
HWB hwb(107 14% 68%) color: hwb(107 14% 68%)
OKLCH oklch(0.3984 0.0855 139.33) color: oklch(0.3984 0.0855 139.33)
Lab lab(31.15 -23.65 23.3) color: lab(31.15 -23.65 23.3)
LCH lch(31.15 33.2 135.43) color: lch(31.15 33.2 135.43)

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 8.96:1
vs Black 2.34: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)

#3D3D2E — rgb(61, 61, 46)

Deuteranopia (Green-blind)

#3B3831 — rgb(59, 56, 49)

Tritanopia (Blue-blind)

#2F3739 — rgb(47, 55, 57)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(108, 40%, 23%);

text

color: hsl(108, 40%, 23%);

border

border: 2px solid hsl(108, 40%, 23%);

gradient light

background: linear-gradient(to right, hsl(108, 40%, 43%), hsl(108, 40%, 23%));

gradient dark

background: linear-gradient(to right, hsl(108, 40%, 23%), hsl(108, 40%, 3%))

hex

background-color: #2D5223;

tailwind

bg-[hsl(108,40%,23%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(108, 40%, 23%, 0.4);

css variable

--color-primary: hsl(108, 40%, 23%);

Related Colors

Use Cases for Green

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

Frequently Asked Questions

What are all the color codes for HSL(108, 40%, 23%)?

HEX: #2D5223 | RGB: rgb(45, 82, 35) | CMYK: 45%, 0%, 57%, 68% | HSV: 107°, 57%, 32%. Copy any format from the conversion table above.

What colors go well with #2D5223?

The complementary color is HSL(288, 40%, 23%). For a triadic harmony, use hues 108°, 228°, and 348°. For analogous combinations, try hues 78° and 138°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(108, 40%, 23%) in CSS?

As HSL: color: hsl(108, 40%, 23%); — As HEX: color: #2D5223; — As RGB: color: rgb(45, 82, 35); — Tailwind CSS: bg-[hsl(108,40%,23%)] — CSS variable: --color-primary: hsl(108, 40%, 23%);