Huebook

Nightly Activities to Perfect Dark Gradient

CSS

background: linear-gradient(90deg, #2e5090 0%, #313390 100%);

Edit this gradient in the generator → Change the angle, add colors or switch to radial.

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

NameHEXRGBHSLCMYKOKLCH
Nightly Activities#2E509046, 80, 144219°, 52%, 37%68, 44, 0, 4444.0% 0.113 262
25% (near Nightly Activities)#2F499047, 73, 144224°, 51%, 37%67, 49, 0, 4442.5% 0.121 266
50% (near Liquid Denim)#30429048, 66, 144229°, 50%, 38%67, 54, 0, 4441.0% 0.130 270
75% (near Perfect Dark)#303A9048, 58, 144234°, 50%, 38%67, 60, 0, 4439.4% 0.141 273
Perfect Dark#31339049, 51, 144239°, 49%, 38%66, 65, 0, 4438.1% 0.150 276

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

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.