HSL(135, 40%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(135,40%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(135, 40%, 31%) | color: hsl(135, 40%, 31%) | |
| HEX | #2F6F3F | color: #2F6F3F | |
| RGB | rgb(47, 111, 63) | color: rgb(47, 111, 63) | |
| CMYK | cmyk(58%, 0%, 43%, 56%) | — | |
| HSV | hsv(135, 58%, 44%) | — | |
| HWB | hwb(135 18% 56%) | color: hwb(135 18% 56%) | |
| OKLCH | oklch(0.4868 0.1007 149.44) | color: oklch(0.4868 0.1007 149.44) | |
| Lab | lab(41.74 -32.02 20.69) | color: lab(41.74 -32.02 20.69) | |
| LCH | lch(41.74 38.12 147.13) | color: lch(41.74 38.12 147.13) |
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)
#4B4B4B — rgb(75, 75, 75)
Deuteranopia (Green-blind)
#47424D — rgb(71, 66, 77)
Tritanopia (Blue-blind)
#325456 — rgb(50, 84, 86)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(135, 40%, 31%);
text
color: hsl(135, 40%, 31%);
border
border: 2px solid hsl(135, 40%, 31%);
gradient light
background: linear-gradient(to right, hsl(135, 40%, 51%), hsl(135, 40%, 31%));
gradient dark
background: linear-gradient(to right, hsl(135, 40%, 31%), hsl(135, 40%, 11%))
hex
background-color: #2F6F3F;
tailwind
bg-[hsl(135,40%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(135, 40%, 31%, 0.4);
css variable
--color-primary: hsl(135, 40%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(135, 40%, 31%)?
HEX: #2F6F3F | RGB: rgb(47, 111, 63) | CMYK: 58%, 0%, 43%, 56% | HSV: 135°, 58%, 44%. Copy any format from the conversion table above.
What colors go well with #2F6F3F?
The complementary color is HSL(315, 40%, 31%). For a triadic harmony, use hues 135°, 255°, and 15°. For analogous combinations, try hues 105° and 165°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(135, 40%, 31%) in CSS?
As HSL: color: hsl(135, 40%, 31%); — As HEX: color: #2F6F3F; — As RGB: color: rgb(47, 111, 63); — Tailwind CSS: bg-[hsl(135,40%,31%)] — CSS variable: --color-primary: hsl(135, 40%, 31%);