HSL(131, 31%, 24%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(131,31%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(131, 31%, 24%) | color: hsl(131, 31%, 24%) | |
| HEX | #2A5031 | color: #2A5031 | |
| RGB | rgb(42, 80, 49) | color: rgb(42, 80, 49) | |
| CMYK | cmyk(48%, 0%, 39%, 69%) | — | |
| HSV | hsv(131, 48%, 31%) | — | |
| HWB | hwb(131 16% 69%) | color: hwb(131 16% 69%) | |
| OKLCH | oklch(0.3937 0.068 148.54) | color: oklch(0.3937 0.068 148.54) | |
| Lab | lab(30.52 -21.3 14.17) | color: lab(30.52 -21.3 14.17) | |
| LCH | lch(30.52 25.58 146.37) | color: lch(30.52 25.58 146.37) |
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)
#3A3B39 — rgb(58, 59, 57)
Deuteranopia (Green-blind)
#38353A — rgb(56, 53, 58)
Tritanopia (Blue-blind)
#2C3E40 — rgb(44, 62, 64)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(131, 31%, 24%);
text
color: hsl(131, 31%, 24%);
border
border: 2px solid hsl(131, 31%, 24%);
gradient light
background: linear-gradient(to right, hsl(131, 31%, 44%), hsl(131, 31%, 24%));
gradient dark
background: linear-gradient(to right, hsl(131, 31%, 24%), hsl(131, 31%, 4%))
hex
background-color: #2A5031;
tailwind
bg-[hsl(131,31%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(131, 31%, 24%, 0.4);
css variable
--color-primary: hsl(131, 31%, 24%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(131, 31%, 24%)?
HEX: #2A5031 | RGB: rgb(42, 80, 49) | CMYK: 48%, 0%, 39%, 69% | HSV: 131°, 48%, 31%. Copy any format from the conversion table above.
What colors go well with #2A5031?
The complementary color is HSL(311, 31%, 24%). For a triadic harmony, use hues 131°, 251°, and 11°. For analogous combinations, try hues 101° and 161°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(131, 31%, 24%) in CSS?
As HSL: color: hsl(131, 31%, 24%); — As HEX: color: #2A5031; — As RGB: color: rgb(42, 80, 49); — Tailwind CSS: bg-[hsl(131,31%,24%)] — CSS variable: --color-primary: hsl(131, 31%, 24%);