Huebook

Midnight Dreams to Oblivion Gradient

CSS

background: linear-gradient(90deg, #002233 0%, #000435 100%);

From Midnight Dreams (#002233) to Oblivion (#000435). The two hues are 35° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYK
Midnight Dreams#0022330, 34, 51200°, 100%, 10%100, 33, 0, 80
25% (near Naval Night)#001B340, 27, 52209°, 100%, 10%100, 48, 0, 80
50% (near Squid’s Ink)#0013340, 19, 52218°, 100%, 10%100, 63, 0, 80
75% (near Oblivion)#000C350, 12, 53226°, 100%, 10%100, 77, 0, 79
Oblivion#0004350, 4, 53235°, 100%, 10%100, 92, 0, 79

Halfway along, the gradient is #001334, closest to the named color Squid’s Ink. 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.19: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 Dreams to Oblivion gradient?

It starts at #002233 (Midnight Dreams) and ends at #000435 (Oblivion), with #001334 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #002233, #000435) runs from Oblivion on the left to Midnight Dreams on the right.