← All gradients
35%How it works
Curated

Deep Space

#000428
#004E92
Text readability
Curated DarkCool

Deep Space is a dark and cool 2-colour linear gradient that runs from near-black (#000428) to blue (#004E92) 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 14.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #000428, #004E92);
Tailwind
bg-gradient-to-br from-[#000428] to-[#004E92]
Figma token
{
    "deep-space": {
        "value": "linear-gradient(135deg, #000428 0%, #004E92 100%)",
        "type": "color"
    }
}

Deep Space gradient for SwiftUI, Flutter, Android and more

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

let deepSpaceGradient = LinearGradient(
    colors: [
        Color(red: 0, green: 0.016, blue: 0.157),
        Color(red: 0, green: 0.306, blue: 0.573)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(deepSpaceGradient)

Colours in the Deep Space gradient

StopNameHEXRGBHSL
1Near-black#000428rgb(0, 4, 40)hsl(234, 100%, 8%)
2Blue#004E92rgb(0, 78, 146)hsl(208, 100%, 29%)

Deep Space gradient in use

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

Deep Space 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 Deep Space gradient?

The Deep Space gradient uses 2 colours: #000428 and #004E92, at an angle of 135°.

How do I use the Deep Space gradient in CSS?

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

What text colour works on the Deep Space gradient?

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