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
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Midnight Dreams | #002233 | 0, 34, 51 | 200°, 100%, 10% | 100, 33, 0, 80 | |
| 25% (near Naval Night) | #001B34 | 0, 27, 52 | 209°, 100%, 10% | 100, 48, 0, 80 | |
| 50% (near Squid’s Ink) | #001334 | 0, 19, 52 | 218°, 100%, 10% | 100, 63, 0, 80 | |
| 75% (near Oblivion) | #000C35 | 0, 12, 53 | 226°, 100%, 10% | 100, 77, 0, 79 | |
| Oblivion | #000435 | 0, 4, 53 | 235°, 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
- Top to bottom:
linear-gradient(180deg, #002233, #000435) - Diagonal:
linear-gradient(135deg, #002233, #000435) - Radial, from the center out:
radial-gradient(circle, #002233, #000435) - Tailwind CSS:
bg-gradient-to-r from-[#002233] to-[#000435]
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.