← All gradients
35%How it works
UI

Input Focus Ring

#DBEAFE
#BFDBFE
Text readability
Ui CoolPastel

Input Focus Ring is a cool and pastel 2-colour linear gradient that runs from off-white (#DBEAFE) to pale blue (#BFDBFE) 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 16.0:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Input Focus Ring gradient for SwiftUI, Flutter, Android and more

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

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

// Usage
Rectangle().fill(inputFocusRingGradient)

Colours in the Input Focus Ring gradient

StopNameHEXRGBHSL
1Off-white#DBEAFErgb(219, 234, 254)hsl(214, 95%, 93%)
2Pale blue#BFDBFErgb(191, 219, 254)hsl(213, 97%, 87%)

Input Focus Ring gradient in use

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

Input Focus Ring 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 Input Focus Ring gradient?

The Input Focus Ring gradient uses 2 colours: #DBEAFE and #BFDBFE, at an angle of 135°.

How do I use the Input Focus Ring gradient in CSS?

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

What text colour works on the Input Focus Ring gradient?

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