← All gradients
35%How it works
Tailwind CSS ↗

Tailwind CSS Gradient

#38BDF8
#818CF8
Text readability
Brand CoolPastel Tech

Tailwind CSS Gradient is a cool and pastel 2-colour linear gradient that runs from teal (#38BDF8) to light blue (#818CF8) at 135°. It is inspired by Tailwind CSS’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 8.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

CSS
background: linear-gradient(135deg, #38BDF8, #818CF8);
Tailwind
bg-gradient-to-br from-[#38BDF8] to-[#818CF8]
Figma token
{
    "tailwind-css": {
        "value": "linear-gradient(135deg, #38BDF8 0%, #818CF8 100%)",
        "type": "color"
    }
}

Tailwind CSS Gradient for SwiftUI, Flutter, Android and more

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

let tailwindCssGradient = LinearGradient(
    colors: [
        Color(red: 0.22, green: 0.741, blue: 0.973),
        Color(red: 0.506, green: 0.549, blue: 0.973)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(tailwindCssGradient)

Colours in the Tailwind CSS Gradient

StopNameHEXRGBHSL
1Teal#38BDF8rgb(56, 189, 248)hsl(198, 93%, 60%)
2Light blue#818CF8rgb(129, 140, 248)hsl(234, 89%, 74%)

Tailwind CSS Gradient in use

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

Tailwind CSS 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 Tailwind CSS Gradient?

The Tailwind CSS Gradient uses 2 colours: #38BDF8 and #818CF8, at an angle of 135°.

How do I use the Tailwind CSS Gradient in CSS?

Paste background: linear-gradient(135deg, #38BDF8, #818CF8); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Tailwind CSS Gradient?

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