← All gradients
35%How it works
Twitter ↗

Twitter / X Gradient

#1D9BF0
#0A71C0
Text readability
Brand Cool Tech

Twitter / X Gradient is a cool 2-colour linear gradient that runs from blue (#1D9BF0) to blue (#0A71C0) at 135°. It is inspired by Twitter’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 5.4:1 against the gradient’s average colour (AA). Check every point, not just the average →

Unofficial reference: inspired by Twitter’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Twitter. Twitter is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Twitter’s. Terms

CSS
background: linear-gradient(135deg, #1D9BF0, #0A71C0);
Tailwind
bg-gradient-to-br from-[#1D9BF0] to-[#0A71C0]
Figma token
{
    "twitter-x": {
        "value": "linear-gradient(135deg, #1D9BF0 0%, #0A71C0 100%)",
        "type": "color"
    }
}

Twitter / X Gradient for SwiftUI, Flutter, Android and more

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

let twitterXGradient = LinearGradient(
    colors: [
        Color(red: 0.114, green: 0.608, blue: 0.941),
        Color(red: 0.039, green: 0.443, blue: 0.753)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(twitterXGradient)

Colours in the Twitter / X Gradient

StopNameHEXRGBHSL
1Blue#1D9BF0rgb(29, 155, 240)hsl(204, 88%, 53%)
2Blue#0A71C0rgb(10, 113, 192)hsl(206, 90%, 40%)

Twitter / X Gradient in use

Build something beautifulA hero section on the Twitter / X GradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Twitter / X 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 Twitter / X Gradient?

The Twitter / X Gradient uses 2 colours: #1D9BF0 and #0A71C0, at an angle of 135°.

How do I use the Twitter / X Gradient in CSS?

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

What text colour works on the Twitter / X Gradient?

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