Cinder to Eclipse Elixir Gradient
CSS
background: linear-gradient(90deg, #242a2e 0%, #1f2133 100%);
From Cinder (#242A2E) to Eclipse Elixir (#1F2133). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Cinder | #242A2E | 36, 42, 46 | 204°, 12%, 16% | 22, 9, 0, 82 | |
| 25% (near Infinity) | #23282F | 35, 40, 47 | 215°, 15%, 16% | 26, 15, 0, 82 | |
| 50% (near Infinity) | #222631 | 34, 38, 49 | 224°, 18%, 16% | 31, 22, 0, 81 | |
| 75% (near Black Velvet) | #202332 | 32, 35, 50 | 230°, 22%, 16% | 36, 30, 0, 80 | |
| Eclipse Elixir | #1F2133 | 31, 33, 51 | 234°, 24%, 16% | 39, 35, 0, 80 |
Halfway along, the gradient is #222631, closest to the named color Infinity. 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.09:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #242a2e, #1f2133) - Diagonal:
linear-gradient(135deg, #242a2e, #1f2133) - Radial, from the center out:
radial-gradient(circle, #242a2e, #1f2133) - Tailwind CSS:
bg-gradient-to-r from-[#242a2e] to-[#1f2133]
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 Cinder to Eclipse Elixir gradient?
It starts at #242A2E (Cinder) and ends at #1F2133 (Eclipse Elixir), with #222631 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #242a2e, #1f2133) runs from Eclipse Elixir on the left to Cinder on the right.