#344FE9
#AA3DFF
#FB0BE6
Cobalt Petal is a cool and bold 3-colour linear gradient that runs from blue (#344FE9) through purple (#AA3DFF) to pink (#FB0BE6) at 180°. It suits dashboards and SaaS landing pages and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 5.0:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(180deg, #344FE9, #AA3DFF, #FB0BE6);
bg-gradient-to-b from-[#344FE9] via-[#AA3DFF] to-[#FB0BE6]
{
"cobalt-petal": {
"value": "linear-gradient(180deg, #344FE9 0%, #AA3DFF 50%, #FB0BE6 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let cobaltPetalGradient = LinearGradient(
colors: [
Color(red: 0.204, green: 0.31, blue: 0.914),
Color(red: 0.667, green: 0.239, blue: 1),
Color(red: 0.984, green: 0.043, blue: 0.902)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(cobaltPetalGradient)val cobaltPetalColors = listOf(Color(0xFF344FE9), Color(0xFFAA3DFF), Color(0xFFFB0BE6))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = cobaltPetalColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/cobalt-petal_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#344FE9"
android:centerColor="#AA3DFF"
android:endColor="#FB0BE6"
android:type="linear" />
</shape>const cobaltPetalGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFF344FE9), Color(0xFFAA3DFF), Color(0xFFFB0BE6)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: cobaltPetalGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#344FE9', '#AA3DFF', '#FB0BE6']}
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="cobalt-petal" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#344FE9" />
<stop offset="50%" stop-color="#AA3DFF" />
<stop offset="100%" stop-color="#FB0BE6" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#cobalt-petal)" />
</svg>:root {
--cobalt-petal-1: #344FE9;
--cobalt-petal-2: #AA3DFF;
--cobalt-petal-3: #FB0BE6;
--cobalt-petal-angle: 180deg;
--cobalt-petal: linear-gradient(var(--cobalt-petal-angle), var(--cobalt-petal-1), var(--cobalt-petal-2), var(--cobalt-petal-3));
}
.hero {
background: var(--cobalt-petal);
}$cobalt-petal-1: #344FE9;
$cobalt-petal-2: #AA3DFF;
$cobalt-petal-3: #FB0BE6;
$cobalt-petal: linear-gradient(180deg, $cobalt-petal-1, $cobalt-petal-2, $cobalt-petal-3);
@mixin cobalt-petal-bg {
background: $cobalt-petal-1;
background: $cobalt-petal;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #344FE9 | rgb(52, 79, 233) | hsl(231, 80%, 56%) |
| 2 | Purple | #AA3DFF | rgb(170, 61, 255) | hsl(274, 100%, 62%) |
| 3 | Pink | #FB0BE6 | rgb(251, 11, 230) | hsl(305, 97%, 51%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Cobalt Petal gradient uses 3 colours: #344FE9, #AA3DFF and #FB0BE6, at an angle of 180°.
Paste background: linear-gradient(180deg, #344FE9, #AA3DFF, #FB0BE6); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 5.0:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.