HSL(97, 22%, 18%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(97,22%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(97, 22%, 18%) color: hsl(97, 22%, 18%)
HEX #2C3824 color: #2C3824
RGB rgb(44, 56, 36) color: rgb(44, 56, 36)
CMYK cmyk(21%, 0%, 36%, 78%)
HSV hsv(96, 36%, 22%)
HWB hwb(96 14% 78%) color: hwb(96 14% 78%)
OKLCH oklch(0.3235 0.0377 133.33) color: oklch(0.3235 0.0377 133.33)
Lab lab(21.91 -9.52 10.92) color: lab(21.91 -9.52 10.92)
LCH lch(21.91 14.49 131.08) color: lch(21.91 14.49 131.08)

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 12.37:1
vs Black 1.7: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)

#313129 — rgb(49, 49, 41)

Deuteranopia (Green-blind)

#31302A — rgb(49, 48, 42)

Tritanopia (Blue-blind)

#2D2D2E — rgb(45, 45, 46)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(97, 22%, 18%);

text

color: hsl(97, 22%, 18%);

border

border: 2px solid hsl(97, 22%, 18%);

gradient light

background: linear-gradient(to right, hsl(97, 22%, 38%), hsl(97, 22%, 18%));

gradient dark

background: linear-gradient(to right, hsl(97, 22%, 18%), hsl(97, 22%, 0%))

hex

background-color: #2C3824;

tailwind

bg-[hsl(97,22%,18%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(97, 22%, 18%, 0.4);

css variable

--color-primary: hsl(97, 22%, 18%);

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(97, 22%, 18%)?

HEX: #2C3824 | RGB: rgb(44, 56, 36) | CMYK: 21%, 0%, 36%, 78% | HSV: 96°, 36%, 22%. Copy any format from the conversion table above.

What colors go well with #2C3824?

The complementary color is HSL(277, 22%, 18%). For a triadic harmony, use hues 97°, 217°, and 337°. For analogous combinations, try hues 67° and 127°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(97, 22%, 18%) in CSS?

As HSL: color: hsl(97, 22%, 18%); — As HEX: color: #2C3824; — As RGB: color: rgb(44, 56, 36); — Tailwind CSS: bg-[hsl(97,22%,18%)] — CSS variable: --color-primary: hsl(97, 22%, 18%);