← All gradients
35%How it works
Curated

Royal Blue and Gold

#0A1F5C
#1B3FA0
#D4AF37
Text readability
Curated BoldCool

Royal Blue and Gold is a bold and cool 3-colour linear gradient that runs from deep blue (#0A1F5C) through blue (#1B3FA0) to yellow (#D4AF37) at 135°. It suits banners and attention-grabbing headers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 7.0:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #0A1F5C, #1B3FA0, #D4AF37);
Tailwind
bg-gradient-to-br from-[#0A1F5C] via-[#1B3FA0] to-[#D4AF37]
Figma token
{
    "royal-blue-and-gold": {
        "value": "linear-gradient(135deg, #0A1F5C 0%, #1B3FA0 50%, #D4AF37 100%)",
        "type": "color"
    }
}

Royal Blue and Gold gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let royalBlueAndGoldGradient = LinearGradient(
    colors: [
        Color(red: 0.039, green: 0.122, blue: 0.361),
        Color(red: 0.106, green: 0.247, blue: 0.627),
        Color(red: 0.831, green: 0.686, blue: 0.216)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(royalBlueAndGoldGradient)

Colours in the Royal Blue and Gold gradient

StopNameHEXRGBHSL
1Deep blue#0A1F5Crgb(10, 31, 92)hsl(225, 80%, 20%)
2Blue#1B3FA0rgb(27, 63, 160)hsl(224, 71%, 37%)
3Yellow#D4AF37rgb(212, 175, 55)hsl(46, 65%, 52%)

Royal Blue and Gold gradient in use

Build something beautifulA hero section on the Royal Blue and Gold gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Royal Blue and Gold gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Royal Blue and Gold gradient?

The Royal Blue and Gold gradient uses 3 colours: #0A1F5C, #1B3FA0 and #D4AF37, at an angle of 135°.

How do I use the Royal Blue and Gold gradient in CSS?

Paste background: linear-gradient(135deg, #0A1F5C, #1B3FA0, #D4AF37); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Royal Blue and Gold gradient?

White text has the best contrast, at 7.0:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.