Huebook

Midnight Melancholia to The Vast of Night Gradient

CSS

background: linear-gradient(90deg, #002266 0%, #110066 100%);

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

From Midnight Melancholia (#002266) to The Vast of Night (#110066). 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

NameHEXRGBHSLCMYKOKLCH
Midnight Melancholia#0022660, 34, 102220°, 100%, 20%100, 67, 0, 6028.3% 0.126 261
25% (near Midnight Melancholia)#041A664, 26, 102227°, 92%, 21%96, 75, 0, 6026.8% 0.135 265
50% (near Dying Storm Blue)#0911669, 17, 102235°, 84%, 22%91, 83, 0, 6025.5% 0.143 268
75% (near Dying Storm Blue)#0D096613, 9, 102243°, 84%, 22%87, 91, 0, 6024.7% 0.149 270
The Vast of Night#11006617, 0, 102250°, 100%, 20%83, 100, 0, 6024.0% 0.154 272

Halfway along, the gradient is #091166, closest to the named color Dying Storm Blue. 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.17: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 Midnight Melancholia to The Vast of Night gradient?

It starts at #002266 (Midnight Melancholia) and ends at #110066 (The Vast of Night), with #091166 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #002266, #110066) runs from The Vast of Night on the left to Midnight Melancholia on the right.