Pine Needle to Dark Slate Gray Gradient
CSS
background: linear-gradient(90deg, #334d41 0%, #2f4f4f 100%);
From Pine Needle (#334D41) to Dark Slate Gray (#2F4F4F). The two hues are 28° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Pine Needle | #334D41 | 51, 77, 65 | 152°, 20%, 25% | 34, 0, 16, 70 | 39.5% 0.038 164 | |
| 25% (near Pine Needle) | #324E45 | 50, 78, 69 | 161°, 22%, 25% | 36, 0, 12, 69 | 39.9% 0.037 172 | |
| 50% (near Hunter) | #314E48 | 49, 78, 72 | 168°, 23%, 25% | 37, 0, 8, 69 | 39.9% 0.036 180 | |
| 75% (near Dark Slate Gray) | #304F4C | 48, 79, 76 | 174°, 24%, 25% | 39, 0, 4, 69 | 40.2% 0.037 188 | |
| Dark Slate Gray | #2F4F4F | 47, 79, 79 | 180°, 25%, 25% | 41, 0, 0, 69 | 40.3% 0.038 196 |
Halfway along, the gradient is #314E48, closest to the named color Hunter. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.03:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #334d41, #2f4f4f) - Diagonal:
linear-gradient(135deg, #334d41, #2f4f4f) - Radial, from the center out:
radial-gradient(circle, #334d41, #2f4f4f) - Tailwind CSS:
bg-gradient-to-r from-[#334d41] to-[#2f4f4f]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the Pine Needle to Dark Slate Gray gradient?
It starts at #334D41 (Pine Needle) and ends at #2F4F4F (Dark Slate Gray), with #314E48 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #334d41, #2f4f4f) runs from Dark Slate Gray on the left to Pine Needle on the right.