Azure to Blue Gradient
CSS
background: linear-gradient(90deg, #007fff 0%, #0000ff 100%);
From Azure (#007FFF) to Blue (#0000FF). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Azure | #007FFF | 0, 127, 255 | 210°, 100%, 50% | 100, 50, 0, 0 | |
| 25% (near Blue Ribbon) | #005FFF | 0, 95, 255 | 218°, 100%, 50% | 100, 63, 0, 0 | |
| 50% (near Rare Blue) | #0040FF | 0, 64, 255 | 225°, 100%, 50% | 100, 75, 0, 0 | |
| 75% (near Blue Overdose) | #0020FF | 0, 32, 255 | 232°, 100%, 50% | 100, 87, 0, 0 | |
| Blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% | 100, 100, 0, 0 |
Halfway along, the gradient is #0040FF, closest to the named color Rare Blue. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black text reads best on the Azure end and white text on the Blue end. For a single line of text across the whole width, put it on a solid panel or pick the side it sits on. The two end colors have a contrast ratio of 2.24:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #007fff, #0000ff) - Diagonal:
linear-gradient(135deg, #007fff, #0000ff) - Radial, from the center out:
radial-gradient(circle, #007fff, #0000ff) - Tailwind CSS:
bg-gradient-to-r from-[#007fff] to-[#0000ff]
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 Azure to Blue gradient?
It starts at #007FFF (Azure) and ends at #0000FF (Blue), with #0040FF in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #007fff, #0000ff) runs from Blue on the left to Azure on the right.