Carbon Fibre to Cola Gradient
CSS
background: linear-gradient(90deg, #2e2e2e 0%, #3c2f23 100%);
From Carbon Fibre (#2E2E2E) to Cola (#3C2F23). The two hues are 29° 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 | |
|---|---|---|---|---|---|
| Carbon Fibre | #2E2E2E | 46, 46, 46 | 0°, 0%, 18% | 0, 0, 0, 82 | |
| 25% (near Holy Crow) | #322E2B | 50, 46, 43 | 26°, 8%, 18% | 0, 8, 14, 80 | |
| 50% (near Holy Crow) | #352F29 | 53, 47, 41 | 30°, 13%, 18% | 0, 11, 23, 79 | |
| 75% (near Creole) | #392F26 | 57, 47, 38 | 28°, 20%, 19% | 0, 18, 33, 78 | |
| Cola | #3C2F23 | 60, 47, 35 | 29°, 26%, 19% | 0, 22, 42, 76 |
Halfway along, the gradient is #352F29, closest to the named color Holy Crow. 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.05:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #2e2e2e, #3c2f23) - Diagonal:
linear-gradient(135deg, #2e2e2e, #3c2f23) - Radial, from the center out:
radial-gradient(circle, #2e2e2e, #3c2f23) - Tailwind CSS:
bg-gradient-to-r from-[#2e2e2e] to-[#3c2f23]
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 Carbon Fibre to Cola gradient?
It starts at #2E2E2E (Carbon Fibre) and ends at #3C2F23 (Cola), with #352F29 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #2e2e2e, #3c2f23) runs from Cola on the left to Carbon Fibre on the right.