#0F172A
#1E1B4B
#312E81
Login Background is a dark and cool 3-colour linear gradient that runs from near-black (#0F172A) through deep blue (#1E1B4B) to blue (#312E81) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 15.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #0F172A, #1E1B4B, #312E81);
bg-gradient-to-br from-[#0F172A] via-[#1E1B4B] to-[#312E81]
{
"login-background": {
"value": "linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let loginBackgroundGradient = LinearGradient(
colors: [
Color(red: 0.059, green: 0.09, blue: 0.165),
Color(red: 0.118, green: 0.106, blue: 0.294),
Color(red: 0.192, green: 0.18, blue: 0.506)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(loginBackgroundGradient)val loginBackgroundColors = listOf(Color(0xFF0F172A), Color(0xFF1E1B4B), Color(0xFF312E81))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = loginBackgroundColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/login-background_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#0F172A"
android:centerColor="#1E1B4B"
android:endColor="#312E81"
android:type="linear" />
</shape>const loginBackgroundGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF0F172A), Color(0xFF1E1B4B), Color(0xFF312E81)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: loginBackgroundGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0F172A', '#1E1B4B', '#312E81']}
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="login-background" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#0F172A" />
<stop offset="50%" stop-color="#1E1B4B" />
<stop offset="100%" stop-color="#312E81" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#login-background)" />
</svg>:root {
--login-background-1: #0F172A;
--login-background-2: #1E1B4B;
--login-background-3: #312E81;
--login-background-angle: 135deg;
--login-background: linear-gradient(var(--login-background-angle), var(--login-background-1), var(--login-background-2), var(--login-background-3));
}
.hero {
background: var(--login-background);
}$login-background-1: #0F172A;
$login-background-2: #1E1B4B;
$login-background-3: #312E81;
$login-background: linear-gradient(135deg, $login-background-1, $login-background-2, $login-background-3);
@mixin login-background-bg {
background: $login-background-1;
background: $login-background;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #0F172A | rgb(15, 23, 42) | hsl(222, 47%, 11%) |
| 2 | Deep blue | #1E1B4B | rgb(30, 27, 75) | hsl(244, 47%, 20%) |
| 3 | Blue | #312E81 | rgb(49, 46, 129) | hsl(242, 47%, 34%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Login Background gradient uses 3 colours: #0F172A, #1E1B4B and #312E81, at an angle of 135°.
Paste background: linear-gradient(135deg, #0F172A, #1E1B4B, #312E81); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 15.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.