← All gradients
35%How it works
UI

404 Page

#1E1B4B
#312E81
#4338CA
Text readability
Ui CoolDark

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 →

CSS
background: linear-gradient(135deg, #1E1B4B, #312E81, #4338CA);
Tailwind
bg-gradient-to-br from-[#1E1B4B] via-[#312E81] to-[#4338CA]
Figma token
{
    "404-page": {
        "value": "linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%)",
        "type": "color"
    }
}

404 Page gradient for SwiftUI, Flutter, Android and more

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)

Colours in the 404 Page gradient

StopNameHEXRGBHSL
1Deep blue#1E1B4Brgb(30, 27, 75)hsl(244, 47%, 20%)
2Blue#312E81rgb(49, 46, 129)hsl(242, 47%, 34%)
3Blue#4338CArgb(67, 56, 202)hsl(245, 58%, 51%)

404 Page gradient in use

Build something beautifulA hero section on the 404 Page gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

404 Page 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 404 Page gradient?

The 404 Page gradient uses 3 colours: #1E1B4B, #312E81 and #4338CA, at an angle of 135°.

How do I use the 404 Page gradient in CSS?

Paste background: linear-gradient(135deg, #1E1B4B, #312E81, #4338CA); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the 404 Page gradient?

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.