Gentian Blue to Wild Violet Gradient
CSS
background: linear-gradient(90deg, #312297 0%, #63209b 100%);
From Gentian Blue (#312297) to Wild Violet (#63209B). The two hues are 25° 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 | |
|---|---|---|---|---|---|
| Gentian Blue | #312297 | 49, 34, 151 | 248°, 63%, 36% | 68, 77, 0, 41 | |
| 25% (near Gentian Blue) | #3E2298 | 62, 34, 152 | 254°, 63%, 36% | 59, 78, 0, 40 | |
| 50% (near Galactic Purple) | #4A2199 | 74, 33, 153 | 261°, 65%, 36% | 52, 78, 0, 40 | |
| 75% (near Wild Violet) | #57219A | 87, 33, 154 | 267°, 65%, 37% | 44, 79, 0, 40 | |
| Wild Violet | #63209B | 99, 32, 155 | 273°, 66%, 37% | 36, 79, 0, 39 |
Halfway along, the gradient is #4A2199, closest to the named color Galactic Purple. 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.22:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #312297, #63209b) - Diagonal:
linear-gradient(135deg, #312297, #63209b) - Radial, from the center out:
radial-gradient(circle, #312297, #63209b) - Tailwind CSS:
bg-gradient-to-r from-[#312297] to-[#63209b]
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 Gentian Blue to Wild Violet gradient?
It starts at #312297 (Gentian Blue) and ends at #63209B (Wild Violet), with #4A2199 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #312297, #63209b) runs from Wild Violet on the left to Gentian Blue on the right.