Into the Night to Eternal Darkness Gradient
CSS
background: linear-gradient(90deg, #1e3642 0%, #1c2841 100%);
From Into the Night (#1E3642) to Eternal Darkness (#1C2841). The two hues are 21° 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 | |
|---|---|---|---|---|---|
| Into the Night | #1E3642 | 30, 54, 66 | 200°, 38%, 19% | 55, 18, 0, 74 | |
| 25% (near Blue Whale) | #1E3342 | 30, 51, 66 | 205°, 38%, 19% | 55, 23, 0, 74 | |
| 50% (near Blue Whale) | #1D2F42 | 29, 47, 66 | 211°, 39%, 19% | 56, 29, 0, 74 | |
| 75% (near Eternal Darkness) | #1D2C41 | 29, 44, 65 | 215°, 38%, 18% | 55, 32, 0, 75 | |
| Eternal Darkness | #1C2841 | 28, 40, 65 | 221°, 40%, 18% | 57, 38, 0, 75 |
Halfway along, the gradient is #1D2F42, closest to the named color Blue Whale. 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.16:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #1e3642, #1c2841) - Diagonal:
linear-gradient(135deg, #1e3642, #1c2841) - Radial, from the center out:
radial-gradient(circle, #1e3642, #1c2841) - Tailwind CSS:
bg-gradient-to-r from-[#1e3642] to-[#1c2841]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Into the Night to Eternal Darkness gradient?
It starts at #1E3642 (Into the Night) and ends at #1C2841 (Eternal Darkness), with #1D2F42 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #1e3642, #1c2841) runs from Eternal Darkness on the left to Into the Night on the right.