← All gradients
35%How it works
Curated

Cobalt Petal

#344FE9
#AA3DFF
#FB0BE6
Text readability
Curated CoolBold

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 →

CSS
background: linear-gradient(180deg, #344FE9, #AA3DFF, #FB0BE6);
Tailwind
bg-gradient-to-b from-[#344FE9] via-[#AA3DFF] to-[#FB0BE6]
Figma token
{
    "cobalt-petal": {
        "value": "linear-gradient(180deg, #344FE9 0%, #AA3DFF 50%, #FB0BE6 100%)",
        "type": "color"
    }
}

Cobalt Petal gradient for SwiftUI, Flutter, Android and more

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)

Colours in the Cobalt Petal gradient

StopNameHEXRGBHSL
1Blue#344FE9rgb(52, 79, 233)hsl(231, 80%, 56%)
2Purple#AA3DFFrgb(170, 61, 255)hsl(274, 100%, 62%)
3Pink#FB0BE6rgb(251, 11, 230)hsl(305, 97%, 51%)

Cobalt Petal gradient in use

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

Cobalt Petal 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 Cobalt Petal gradient?

The Cobalt Petal gradient uses 3 colours: #344FE9, #AA3DFF and #FB0BE6, at an angle of 180°.

How do I use the Cobalt Petal gradient in CSS?

Paste background: linear-gradient(180deg, #344FE9, #AA3DFF, #FB0BE6); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Cobalt Petal gradient?

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.