Midsummer Nights to Electric Indigo Gradient
CSS
background: linear-gradient(90deg, #0011ee 0%, #6600ff 100%);
From Midsummer Nights (#0011EE) to Electric Indigo (#6600FF). 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 | |
|---|---|---|---|---|---|
| Midsummer Nights | #0011EE | 0, 17, 238 | 236°, 100%, 47% | 100, 93, 0, 7 | |
| 25% (near Burning Ultrablue) | #1A0DF2 | 26, 13, 242 | 243°, 90%, 50% | 89, 95, 0, 5 | |
| 50% (near Blustering Blue) | #3309F7 | 51, 9, 247 | 251°, 94%, 50% | 79, 96, 0, 3 | |
| 75% (near Overdue Blue) | #4D04FB | 77, 4, 251 | 258°, 97%, 50% | 69, 98, 0, 2 | |
| Electric Indigo | #6600FF | 102, 0, 255 | 264°, 100%, 50% | 60, 100, 0, 0 |
Halfway along, the gradient is #3309F7, closest to the named color Blustering Blue. 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.30:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #0011ee, #6600ff) - Diagonal:
linear-gradient(135deg, #0011ee, #6600ff) - Radial, from the center out:
radial-gradient(circle, #0011ee, #6600ff) - Tailwind CSS:
bg-gradient-to-r from-[#0011ee] to-[#6600ff]
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 Midsummer Nights to Electric Indigo gradient?
It starts at #0011EE (Midsummer Nights) and ends at #6600FF (Electric Indigo), with #3309F7 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #0011ee, #6600ff) runs from Electric Indigo on the left to Midsummer Nights on the right.