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