Blue and Yellow Gradient
CSS GradientThe blue and yellow gradient is crafted with 5 colors (#1E3A8A, #2563A8, #7CA3C2, #D9CF8A, #FDE047). Ready-to-use linear, radial, and conic CSS rules for modern web and mobile apps.

|
#1E3A8A
#2563A8
#7CA3C2
#D9CF8A
#FDE047
1. Gradient Color Stops
| Swatch | HEX | RGB | HSL | CMYK | OKLCH |
|---|---|---|---|---|---|
#1E3A8A | 30, 58, 138 | 224°, 64%, 33% | 78%, 58%, 0%, 46% | oklch(0.379 0.138 266) | |
#2563A8 | 37, 99, 168 | 212°, 64%, 40% | 78%, 41%, 0%, 34% | oklch(0.496 0.127 254) | |
#7CA3C2 | 124, 163, 194 | 207°, 36%, 62% | 36%, 16%, 0%, 24% | oklch(0.698 0.063 243) | |
#D9CF8A | 217, 207, 138 | 52°, 51%, 70% | 0%, 5%, 36%, 15% | oklch(0.847 0.089 101) | |
#FDE047 | 253, 224, 71 | 50°, 98%, 64% | 0%, 11%, 72%, 1% | oklch(0.905 0.166 98) |
2. Gradient Variations & Styles
Linear Gradient
Radial Gradient
Conic Gradient
3. CSS Code & Declarations
Linear Gradient
background: linear-gradient(to right, #1E3A8A, #2563A8, #7CA3C2, #D9CF8A, #FDE047);
Radial Gradient
background: radial-gradient(circle, #1E3A8A, #2563A8, #7CA3C2, #D9CF8A, #FDE047);
Conic Gradient
background: conic-gradient(from 180deg at 50% 50%, #1E3A8A, #2563A8, #7CA3C2, #D9CF8A, #FDE047);
Tailwind CSS
bg-gradient-to-r from-[#1E3A8A] to-[#FDE047]
SCSS Variable
$gradient-blue-and-yellow-gradient: linear-gradient(to right, #1E3A8A, #2563A8, #7CA3C2, #D9CF8A, #FDE047);
4. Stop Accessibility & Contrast
#1E3A8AStop 1
On White:10.36:1
On Black:2.03:1
WCAG Pass
#2563A8Stop 2
On White:6.12:1
On Black:3.43:1
WCAG Pass
#7CA3C2Stop 3
On White:2.67:1
On Black:7.87:1
WCAG Pass
#D9CF8AStop 4
On White:1.59:1
On Black:13.24:1
WCAG Pass
#FDE047Stop 5
On White:1.32:1
On Black:15.93:1
WCAG Pass
5. UI Preview with Gradient
Card Header
Blue and Yellow 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 Blue and Yellow Gradient
Gradient Name
Blue and Yellow Gradient
Color Stops
5 Colors
First Color
#1E3A8A
End Color
#FDE047
Color Swatches