Huebook

Nightmare Fuel to Midnight Express Gradient

CSS

background: linear-gradient(90deg, #293135 0%, #21263a 100%);

From Nightmare Fuel (#293135) to Midnight Express (#21263A). The two hues are 28° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYK
Nightmare Fuel#29313541, 49, 53200°, 13%, 18%23, 8, 0, 79
25% (near Nightmare Fuel)#272E3639, 46, 54212°, 16%, 18%28, 15, 0, 79
50% (near Nightmare Fuel)#252C3837, 44, 56218°, 20%, 18%34, 21, 0, 78
75% (near Midnight Express)#23293935, 41, 57224°, 24%, 18%39, 28, 0, 78
Midnight Express#21263A33, 38, 58228°, 27%, 18%43, 34, 0, 77

Halfway along, the gradient is #252C38, closest to the named color Nightmare Fuel. 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.13: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.

Questions

What are the HEX codes of the Nightmare Fuel to Midnight Express gradient?

It starts at #293135 (Nightmare Fuel) and ends at #21263A (Midnight Express), with #252C38 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #293135, #21263a) runs from Midnight Express on the left to Nightmare Fuel on the right.