← All gradients
35%How it works
Facebook ↗

Facebook Gradient

#18ACFE
#0163E0
Text readability
Brand Cool Tech

Facebook Gradient is a cool 2-colour linear gradient that runs from blue (#18ACFE) to blue (#0163E0) at 180°. It is inspired by Facebook’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 5.8:1 against the gradient’s average colour (AA). Check every point, not just the average →

Unofficial reference: inspired by Facebook’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Facebook. Facebook 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 Facebook’s. Terms

CSS
background: linear-gradient(180deg, #18ACFE, #0163E0);
Tailwind
bg-gradient-to-b from-[#18ACFE] to-[#0163E0]
Figma token
{
    "facebook": {
        "value": "linear-gradient(180deg, #18ACFE 0%, #0163E0 100%)",
        "type": "color"
    }
}

Facebook Gradient for SwiftUI, Flutter, Android and more

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

let facebookGradient = LinearGradient(
    colors: [
        Color(red: 0.094, green: 0.675, blue: 0.996),
        Color(red: 0.004, green: 0.388, blue: 0.878)
    ],
    startPoint: UnitPoint(x: 0.5, y: 0),
    endPoint: UnitPoint(x: 0.5, y: 1)
)

// Usage
Rectangle().fill(facebookGradient)

Colours in the Facebook Gradient

StopNameHEXRGBHSL
1Blue#18ACFErgb(24, 172, 254)hsl(201, 99%, 55%)
2Blue#0163E0rgb(1, 99, 224)hsl(214, 99%, 44%)

Facebook Gradient in use

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

Facebook 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 Facebook Gradient?

The Facebook Gradient uses 2 colours: #18ACFE and #0163E0, at an angle of 180°.

How do I use the Facebook Gradient in CSS?

Paste background: linear-gradient(180deg, #18ACFE, #0163E0); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Facebook Gradient?

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