Home /Gradients /Blue to Purple

Blue to Purple Gradient

Interactive CSS gradient from #1D2671 to #228B22. Adjust direction, type, and copy the code.

linear · 135deg
#
#
Type
Direction
Color Stop50%
Color at 50%:
#20594A
CSS Code
Color Values
Start
#1D2671 · rgb(29,38,113) · hsl(234,59%,28%)
End
#228B22 · rgb(34,139,34) · hsl(120,61%,34%)
Mid (50%)
#20594A · rgb(32,89,74) · hsl(164,47%,24%)
Gradient Steps (10)
#1D2671
#1E3168
#1E3C5F
#1F4857
#1F534E
#205E45
#20693C
#217534
#21802B
#228B22
Full CSS Snippet

More Gradients

FAQ

How do I create a CSS gradient?+
Use the CSS background property with linear-gradient(), radial-gradient(), or conic-gradient(). For example: background: linear-gradient(135deg, #1D2671, #228B22);
What is the difference between linear and radial gradients?+
Linear gradients transition colors along a straight line (horizontal, vertical, or diagonal). Radial gradients transition colors outward from a center point in a circular or elliptical pattern.
Can I use gradients in Tailwind CSS?+
Yes. Use utility classes like bg-gradient-to-r (direction) with from-[#hex] and to-[#hex]. For this gradient: bg-gradient-to-r from-[#1D2671] to-[#228B22]
How many colors can a CSS gradient have?+
CSS gradients support unlimited color stops. You can add as many colors as you want by separating them with commas: linear-gradient(to right, #color1, #color2, #color3, ...).