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
background: linear-gradient(180deg, #18ACFE, #0163E0);
bg-gradient-to-b from-[#18ACFE] to-[#0163E0]
{
"facebook": {
"value": "linear-gradient(180deg, #18ACFE 0%, #0163E0 100%)",
"type": "color"
}
}
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)val facebookColors = listOf(Color(0xFF18ACFE), Color(0xFF0163E0))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = facebookColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/facebook_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#18ACFE"
android:endColor="#0163E0"
android:type="linear" />
</shape>const facebookGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFF18ACFE), Color(0xFF0163E0)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: facebookGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#18ACFE', '#0163E0']}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="facebook" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#18ACFE" />
<stop offset="100%" stop-color="#0163E0" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#facebook)" />
</svg>:root {
--facebook-1: #18ACFE;
--facebook-2: #0163E0;
--facebook-angle: 180deg;
--facebook: linear-gradient(var(--facebook-angle), var(--facebook-1), var(--facebook-2));
}
.hero {
background: var(--facebook);
}$facebook-1: #18ACFE;
$facebook-2: #0163E0;
$facebook: linear-gradient(180deg, $facebook-1, $facebook-2);
@mixin facebook-bg {
background: $facebook-1;
background: $facebook;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #18ACFE | rgb(24, 172, 254) | hsl(201, 99%, 55%) |
| 2 | Blue | #0163E0 | rgb(1, 99, 224) | hsl(214, 99%, 44%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Facebook Gradient uses 2 colours: #18ACFE and #0163E0, at an angle of 180°.
Paste background: linear-gradient(180deg, #18ACFE, #0163E0); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.