← All gradients
35%How it works
UI

Search Bar Focus

#EFF6FF
#DBEAFE
Text readability
Ui CoolPastel

Search Bar Focus is a cool and pastel 2-colour linear gradient that runs from off-white (#EFF6FF) to off-white (#DBEAFE) at 135°. It suits dashboards and SaaS landing pages and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 18.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
Tailwind
bg-gradient-to-br from-[#EFF6FF] to-[#DBEAFE]
Figma token
{
    "search-bar-focus": {
        "value": "linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%)",
        "type": "color"
    }
}

Search Bar Focus gradient for SwiftUI, Flutter, Android and more

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

let searchBarFocusGradient = LinearGradient(
    colors: [
        Color(red: 0.937, green: 0.965, blue: 1),
        Color(red: 0.859, green: 0.918, blue: 0.996)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(searchBarFocusGradient)

Colours in the Search Bar Focus gradient

StopNameHEXRGBHSL
1Off-white#EFF6FFrgb(239, 246, 255)hsl(214, 100%, 97%)
2Off-white#DBEAFErgb(219, 234, 254)hsl(214, 95%, 93%)

Search Bar Focus gradient in use

Build something beautifulA hero section on the Search Bar Focus gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Search Bar Focus 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 Search Bar Focus gradient?

The Search Bar Focus gradient uses 2 colours: #EFF6FF and #DBEAFE, at an angle of 135°.

How do I use the Search Bar Focus gradient in CSS?

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

What text colour works on the Search Bar Focus gradient?

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