← All gradients
35%How it works
Curated

Denim

#9DB8DE
#3F6CB0
#1B2F57
Text readability
Curated Cool

Denim is a cool 3-colour linear gradient that runs from light blue (#9DB8DE) through blue (#3F6CB0) to deep blue (#1B2F57) at 135°. It suits dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 4.9:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #9DB8DE, #3F6CB0, #1B2F57);
Tailwind
bg-gradient-to-br from-[#9DB8DE] via-[#3F6CB0] to-[#1B2F57]
Figma token
{
    "denim": {
        "value": "linear-gradient(135deg, #9DB8DE 0%, #3F6CB0 50%, #1B2F57 100%)",
        "type": "color"
    }
}

Denim gradient for SwiftUI, Flutter, Android and more

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

let denimGradient = LinearGradient(
    colors: [
        Color(red: 0.616, green: 0.722, blue: 0.871),
        Color(red: 0.247, green: 0.424, blue: 0.69),
        Color(red: 0.106, green: 0.184, blue: 0.341)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(denimGradient)

Colours in the Denim gradient

StopNameHEXRGBHSL
1Light blue#9DB8DErgb(157, 184, 222)hsl(215, 50%, 74%)
2Blue#3F6CB0rgb(63, 108, 176)hsl(216, 47%, 47%)
3Deep blue#1B2F57rgb(27, 47, 87)hsl(220, 53%, 22%)

Denim gradient in use

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

Denim 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 Denim gradient?

The Denim gradient uses 3 colours: #9DB8DE, #3F6CB0 and #1B2F57, at an angle of 135°.

How do I use the Denim gradient in CSS?

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

What text colour works on the Denim gradient?

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