Blue Whale to Eternal Darkness Gradient
CSS
background: linear-gradient(90deg, #1e3442 0%, #1c2841 100%);
From Blue Whale (#1E3442) to Eternal Darkness (#1C2841). The two hues are 17° 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 | |
|---|---|---|---|---|---|
| Blue Whale | #1E3442 | 30, 52, 66 | 203°, 38%, 19% | 55, 21, 0, 74 | |
| 25% (near Blue Whale) | #1E3142 | 30, 49, 66 | 208°, 38%, 19% | 55, 26, 0, 74 | |
| 50% (near Blue Whale) | #1D2E42 | 29, 46, 66 | 212°, 39%, 19% | 56, 30, 0, 74 | |
| 75% (near Eternal Darkness) | #1D2B41 | 29, 43, 65 | 217°, 38%, 18% | 55, 34, 0, 75 | |
| Eternal Darkness | #1C2841 | 28, 40, 65 | 221°, 40%, 18% | 57, 38, 0, 75 |
Halfway along, the gradient is #1D2E42, 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.14:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #1e3442, #1c2841) - Diagonal:
linear-gradient(135deg, #1e3442, #1c2841) - Radial, from the center out:
radial-gradient(circle, #1e3442, #1c2841) - Tailwind CSS:
bg-gradient-to-r from-[#1e3442] 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 Blue Whale to Eternal Darkness gradient?
It starts at #1E3442 (Blue Whale) and ends at #1C2841 (Eternal Darkness), with #1D2E42 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #1e3442, #1c2841) runs from Eternal Darkness on the left to Blue Whale on the right.