← All gradients
35%How it works
UI

Button Primary

#2563EB
#1D4ED8
Text readability
Ui CoolBold

Button Primary is a cool and bold 2-colour linear gradient that runs from blue (#2563EB) to blue (#1D4ED8) at 135°. It suits dashboards and SaaS landing pages and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 5.9:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #2563EB, #1D4ED8);
Tailwind
bg-gradient-to-br from-[#2563EB] to-[#1D4ED8]
Figma token
{
    "button-primary": {
        "value": "linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%)",
        "type": "color"
    }
}

Button Primary gradient for SwiftUI, Flutter, Android and more

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

let buttonPrimaryGradient = LinearGradient(
    colors: [
        Color(red: 0.145, green: 0.388, blue: 0.922),
        Color(red: 0.114, green: 0.306, blue: 0.847)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(buttonPrimaryGradient)

Colours in the Button Primary gradient

StopNameHEXRGBHSL
1Blue#2563EBrgb(37, 99, 235)hsl(221, 83%, 53%)
2Blue#1D4ED8rgb(29, 78, 216)hsl(224, 76%, 48%)

Button Primary gradient in use

Build something beautifulA hero section on the Button Primary gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Button Primary 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 Button Primary gradient?

The Button Primary gradient uses 2 colours: #2563EB and #1D4ED8, at an angle of 135°.

How do I use the Button Primary gradient in CSS?

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

What text colour works on the Button Primary gradient?

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