Glimpse of Void to Perfect Dark Gradient
CSS
background: linear-gradient(90deg, #335588 0%, #313390 100%);
From Glimpse of Void (#335588) to Perfect Dark (#313390). The two hues are 23° 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 | |
|---|---|---|---|---|---|
| Glimpse of Void | #335588 | 51, 85, 136 | 216°, 45%, 37% | 63, 38, 0, 47 | |
| 25% (near Glimpse of Void) | #334D8A | 51, 77, 138 | 222°, 46%, 37% | 63, 44, 0, 46 | |
| 50% (near Queen of the Night Shift) | #32448C | 50, 68, 140 | 228°, 47%, 37% | 64, 51, 0, 45 | |
| 75% (near Perfect Dark) | #323C8E | 50, 60, 142 | 233°, 48%, 38% | 65, 58, 0, 44 | |
| Perfect Dark | #313390 | 49, 51, 144 | 239°, 49%, 38% | 66, 65, 0, 44 |
Halfway along, the gradient is #32448C, closest to the named color Queen of the Night Shift. 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.39:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #335588, #313390) - Diagonal:
linear-gradient(135deg, #335588, #313390) - Radial, from the center out:
radial-gradient(circle, #335588, #313390) - Tailwind CSS:
bg-gradient-to-r from-[#335588] to-[#313390]
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 Glimpse of Void to Perfect Dark gradient?
It starts at #335588 (Glimpse of Void) and ends at #313390 (Perfect Dark), with #32448C in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #335588, #313390) runs from Perfect Dark on the left to Glimpse of Void on the right.