HSL(104, 40%, 22%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(104,40%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(104, 40%, 22%) | color: hsl(104, 40%, 22%) | |
| HEX | #2E4F22 | color: #2E4F22 | |
| RGB | rgb(46, 79, 34) | color: rgb(46, 79, 34) | |
| CMYK | cmyk(42%, 0%, 57%, 69%) | — | |
| HSV | hsv(104, 57%, 31%) | — | |
| HWB | hwb(104 13% 69%) | color: hwb(104 13% 69%) | |
| OKLCH | oklch(0.3902 0.081 138) | color: oklch(0.3902 0.081 138) | |
| Lab | lab(30.13 -21.9 22.65) | color: lab(30.13 -21.9 22.65) | |
| LCH | lch(30.13 31.51 134.04) | color: lch(30.13 31.51 134.04) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#3C3D2D — rgb(60, 61, 45)
Deuteranopia (Green-blind)
#3A3830 — rgb(58, 56, 48)
Tritanopia (Blue-blind)
#303537 — rgb(48, 53, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(104, 40%, 22%);
text
color: hsl(104, 40%, 22%);
border
border: 2px solid hsl(104, 40%, 22%);
gradient light
background: linear-gradient(to right, hsl(104, 40%, 42%), hsl(104, 40%, 22%));
gradient dark
background: linear-gradient(to right, hsl(104, 40%, 22%), hsl(104, 40%, 2%))
hex
background-color: #2E4F22;
tailwind
bg-[hsl(104,40%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(104, 40%, 22%, 0.4);
css variable
--color-primary: hsl(104, 40%, 22%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(104, 40%, 22%)?
HEX: #2E4F22 | RGB: rgb(46, 79, 34) | CMYK: 42%, 0%, 57%, 69% | HSV: 104°, 57%, 31%. Copy any format from the conversion table above.
What colors go well with #2E4F22?
The complementary color is HSL(284, 40%, 22%). For a triadic harmony, use hues 104°, 224°, and 344°. For analogous combinations, try hues 74° and 134°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(104, 40%, 22%) in CSS?
As HSL: color: hsl(104, 40%, 22%); — As HEX: color: #2E4F22; — As RGB: color: rgb(46, 79, 34); — Tailwind CSS: bg-[hsl(104,40%,22%)] — CSS variable: --color-primary: hsl(104, 40%, 22%);