Midnight Escapade to Purple Noir Gradient
CSS
background: linear-gradient(90deg, #2b3458 0%, #322c56 100%);
From Midnight Escapade (#2B3458) to Purple Noir (#322C56). The two hues are 21° 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 Escapade | #2B3458 | 43, 52, 88 | 228°, 34%, 26% | 51, 41, 0, 65 | |
| 25% (near Midnight Escapade) | #2D3258 | 45, 50, 88 | 233°, 32%, 26% | 49, 43, 0, 65 | |
| 50% (near Deep Sea Base) | #2F3057 | 47, 48, 87 | 239°, 30%, 26% | 46, 45, 0, 66 | |
| 75% (near Purple Noir) | #302E57 | 48, 46, 87 | 243°, 31%, 26% | 45, 47, 0, 66 | |
| Purple Noir | #322C56 | 50, 44, 86 | 249°, 32%, 25% | 42, 49, 0, 66 |
Halfway along, the gradient is #2F3057, closest to the named color Deep Sea Base. 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.06:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #2b3458, #322c56) - Diagonal:
linear-gradient(135deg, #2b3458, #322c56) - Radial, from the center out:
radial-gradient(circle, #2b3458, #322c56) - Tailwind CSS:
bg-gradient-to-r from-[#2b3458] to-[#322c56]
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 Midnight Escapade to Purple Noir gradient?
It starts at #2B3458 (Midnight Escapade) and ends at #322C56 (Purple Noir), with #2F3057 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #2b3458, #322c56) runs from Purple Noir on the left to Midnight Escapade on the right.