Red to Blue Gradient
CSS GradientThe red to blue gradient is crafted with 5 colors (#FF0000, #BF0040, #800080, #4000BF, #0000FF). Ready-to-use linear, radial, and conic CSS rules for modern web and mobile apps.

|
#FF0000
#BF0040
#800080
#4000BF
#0000FF
1. Gradient Color Stops
| Swatch | HEX | RGB | HSL | CMYK | OKLCH |
|---|---|---|---|---|---|
#FF0000 | 255, 0, 0 | 0°, 100%, 50% | 0%, 100%, 100%, 0% | oklch(0.628 0.258 29) | |
#BF0040 | 191, 0, 64 | 340°, 100%, 37% | 0%, 100%, 66%, 25% | oklch(0.512 0.205 15) | |
#800080 | 128, 0, 128 | 300°, 100%, 25% | 0%, 100%, 0%, 50% | oklch(0.421 0.193 328) | |
#4000BF | 64, 0, 191 | 260°, 100%, 37% | 66%, 100%, 0%, 25% | oklch(0.396 0.238 281) | |
#0000FF | 0, 0, 255 | 240°, 100%, 50% | 100%, 100%, 0%, 0% | oklch(0.452 0.313 264) |
2. Gradient Variations & Styles
Linear Gradient
Radial Gradient
Conic Gradient
3. CSS Code & Declarations
Linear Gradient
background: linear-gradient(to right, #FF0000, #BF0040, #800080, #4000BF, #0000FF);
Radial Gradient
background: radial-gradient(circle, #FF0000, #BF0040, #800080, #4000BF, #0000FF);
Conic Gradient
background: conic-gradient(from 180deg at 50% 50%, #FF0000, #BF0040, #800080, #4000BF, #0000FF);
Tailwind CSS
bg-gradient-to-r from-[#FF0000] to-[#0000FF]
SCSS Variable
$gradient-red-to-blue-gradient: linear-gradient(to right, #FF0000, #BF0040, #800080, #4000BF, #0000FF);
4. Stop Accessibility & Contrast
#FF0000Stop 1
On White:4.00:1
On Black:5.25:1
WCAG Pass
#BF0040Stop 2
On White:6.38:1
On Black:3.29:1
WCAG Pass
#800080Stop 3
On White:9.42:1
On Black:2.23:1
WCAG Pass
#4000BFStop 4
On White:10.66:1
On Black:1.97:1
WCAG Pass
#0000FFStop 5
On White:8.59:1
On Black:2.44:1
WCAG Pass
5. UI Preview with Gradient
Card Header
Red to Blue Gradient Banner
Stunning backgrounds for hero sections, marketing callouts, and modern card containers.
Modern Dark Mode
Gradient Glow
Use vibrant gradients as high-conversion button fills, text-gradients, or active focus rings.
Text Gradient
Similar Gradients
Gradient Ideas
About Red to Blue Gradient
Gradient Name
Red to Blue Gradient
Color Stops
5 Colors
First Color
#FF0000
End Color
#0000FF
Color Swatches