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
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Nightmare Fuel | #293135 | 41, 49, 53 | 200°, 13%, 18% | 23, 8, 0, 79 | |
| 25% (near Nightmare Fuel) | #272E36 | 39, 46, 54 | 212°, 16%, 18% | 28, 15, 0, 79 | |
| 50% (near Nightmare Fuel) | #252C38 | 37, 44, 56 | 218°, 20%, 18% | 34, 21, 0, 78 | |
| 75% (near Midnight Express) | #232939 | 35, 41, 57 | 224°, 24%, 18% | 39, 28, 0, 78 | |
| Midnight Express | #21263A | 33, 38, 58 | 228°, 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
- Top to bottom:
linear-gradient(180deg, #293135, #21263a) - Diagonal:
linear-gradient(135deg, #293135, #21263a) - Radial, from the center out:
radial-gradient(circle, #293135, #21263a) - Tailwind CSS:
bg-gradient-to-r from-[#293135] to-[#21263a]
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.