Royal Night to Night Fever Gradient
CSS
background: linear-gradient(90deg, #2b3191 0%, #572e89 100%);
From Royal Night (#2B3191) to Night Fever (#572E89). The two hues are 31° 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 | |
|---|---|---|---|---|---|
| Royal Night | #2B3191 | 43, 49, 145 | 236°, 54%, 37% | 70, 66, 0, 43 | |
| 25% (near Perfect Dark) | #36308F | 54, 48, 143 | 244°, 50%, 37% | 62, 66, 0, 44 | |
| 50% (near Majestic Eggplant) | #41308D | 65, 48, 141 | 251°, 49%, 37% | 54, 66, 0, 45 | |
| 75% (near Majestic Eggplant) | #4C2F8B | 76, 47, 139 | 259°, 49%, 36% | 45, 66, 0, 45 | |
| Night Fever | #572E89 | 87, 46, 137 | 267°, 50%, 36% | 36, 66, 0, 46 |
Halfway along, the gradient is #41308D, closest to the named color Majestic Eggplant. 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.11:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #2b3191, #572e89) - Diagonal:
linear-gradient(135deg, #2b3191, #572e89) - Radial, from the center out:
radial-gradient(circle, #2b3191, #572e89) - Tailwind CSS:
bg-gradient-to-r from-[#2b3191] to-[#572e89]
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 Royal Night to Night Fever gradient?
It starts at #2B3191 (Royal Night) and ends at #572E89 (Night Fever), with #41308D in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #2b3191, #572e89) runs from Night Fever on the left to Royal Night on the right.