#EFF6FF
#DBEAFE
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 →
background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
bg-gradient-to-br from-[#EFF6FF] to-[#DBEAFE]
{
"search-bar-focus": {
"value": "linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%)",
"type": "color"
}
}
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)val searchBarFocusColors = listOf(Color(0xFFEFF6FF), Color(0xFFDBEAFE))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = searchBarFocusColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/search-bar-focus_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#EFF6FF"
android:endColor="#DBEAFE"
android:type="linear" />
</shape>const searchBarFocusGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFEFF6FF), Color(0xFFDBEAFE)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: searchBarFocusGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#EFF6FF', '#DBEAFE']}
start={{ x: 0, y: 0 }}
end={{ x: 1, 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="search-bar-focus" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#EFF6FF" />
<stop offset="100%" stop-color="#DBEAFE" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#search-bar-focus)" />
</svg>:root {
--search-bar-focus-1: #EFF6FF;
--search-bar-focus-2: #DBEAFE;
--search-bar-focus-angle: 135deg;
--search-bar-focus: linear-gradient(var(--search-bar-focus-angle), var(--search-bar-focus-1), var(--search-bar-focus-2));
}
.hero {
background: var(--search-bar-focus);
}$search-bar-focus-1: #EFF6FF;
$search-bar-focus-2: #DBEAFE;
$search-bar-focus: linear-gradient(135deg, $search-bar-focus-1, $search-bar-focus-2);
@mixin search-bar-focus-bg {
background: $search-bar-focus-1;
background: $search-bar-focus;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #EFF6FF | rgb(239, 246, 255) | hsl(214, 100%, 97%) |
| 2 | Off-white | #DBEAFE | rgb(219, 234, 254) | hsl(214, 95%, 93%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Search Bar Focus gradient uses 2 colours: #EFF6FF and #DBEAFE, at an angle of 135°.
Paste background: linear-gradient(135deg, #EFF6FF, #DBEAFE); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.