← All gradients
35%How it works
UI

Electric Blue UI

#1E3A5F
#1D4ED8
Text readability
Ui DarkCoolBold

Electric Blue UI is a dark, cool and bold 2-colour linear gradient that runs from deep blue (#1E3A5F) to blue (#1D4ED8) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 8.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Electric Blue UI gradient for SwiftUI, Flutter, Android and more

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

let electricBlueUiGradient = LinearGradient(
    colors: [
        Color(red: 0.118, green: 0.227, blue: 0.373),
        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(electricBlueUiGradient)

Colours in the Electric Blue UI gradient

StopNameHEXRGBHSL
1Deep blue#1E3A5Frgb(30, 58, 95)hsl(214, 52%, 25%)
2Blue#1D4ED8rgb(29, 78, 216)hsl(224, 76%, 48%)

Electric Blue UI gradient in use

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

Electric Blue UI 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 Electric Blue UI gradient?

The Electric Blue UI gradient uses 2 colours: #1E3A5F and #1D4ED8, at an angle of 135°.

How do I use the Electric Blue UI gradient in CSS?

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

What text colour works on the Electric Blue UI gradient?

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