Nightly Activities to Perfect Dark Gradient
CSS
background: linear-gradient(90deg, #2e5090 0%, #313390 100%);
From Nightly Activities (#2E5090) to Perfect Dark (#313390). The two hues are 20° 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 | |
|---|---|---|---|---|---|
| Nightly Activities | #2E5090 | 46, 80, 144 | 219°, 52%, 37% | 68, 44, 0, 44 | |
| 25% (near Nightly Activities) | #2F4990 | 47, 73, 144 | 224°, 51%, 37% | 67, 49, 0, 44 | |
| 50% (near Liquid Denim) | #304290 | 48, 66, 144 | 229°, 50%, 38% | 67, 54, 0, 44 | |
| 75% (near Perfect Dark) | #303A90 | 48, 58, 144 | 234°, 50%, 38% | 67, 60, 0, 44 | |
| Perfect Dark | #313390 | 49, 51, 144 | 239°, 49%, 38% | 66, 65, 0, 44 |
Halfway along, the gradient is #304290, closest to the named color Liquid Denim. 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.33:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #2e5090, #313390) - Diagonal:
linear-gradient(135deg, #2e5090, #313390) - Radial, from the center out:
radial-gradient(circle, #2e5090, #313390) - Tailwind CSS:
bg-gradient-to-r from-[#2e5090] to-[#313390]
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 Nightly Activities to Perfect Dark gradient?
It starts at #2E5090 (Nightly Activities) and ends at #313390 (Perfect Dark), with #304290 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #2e5090, #313390) runs from Perfect Dark on the left to Nightly Activities on the right.