← All gradients
35%How it works
Curated

Moonlit Asteroid

#0F2027
#203A43
#2C5364
Text readability
Curated DarkCool

Moonlit Asteroid is a dark and cool 3-colour linear gradient that runs from near-black (#0F2027) through charcoal (#203A43) to teal (#2C5364) 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 12.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
Tailwind
bg-gradient-to-br from-[#0F2027] via-[#203A43] to-[#2C5364]
Figma token
{
    "moonlit-asteroid": {
        "value": "linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%)",
        "type": "color"
    }
}

Moonlit Asteroid gradient for SwiftUI, Flutter, Android and more

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

let moonlitAsteroidGradient = LinearGradient(
    colors: [
        Color(red: 0.059, green: 0.125, blue: 0.153),
        Color(red: 0.125, green: 0.227, blue: 0.263),
        Color(red: 0.173, green: 0.325, blue: 0.392)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(moonlitAsteroidGradient)

Colours in the Moonlit Asteroid gradient

StopNameHEXRGBHSL
1Near-black#0F2027rgb(15, 32, 39)hsl(198, 44%, 11%)
2Charcoal#203A43rgb(32, 58, 67)hsl(195, 35%, 19%)
3Teal#2C5364rgb(44, 83, 100)hsl(198, 39%, 28%)

Moonlit Asteroid gradient in use

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

Moonlit Asteroid 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 Moonlit Asteroid gradient?

The Moonlit Asteroid gradient uses 3 colours: #0F2027, #203A43 and #2C5364, at an angle of 135°.

How do I use the Moonlit Asteroid gradient in CSS?

Paste background: linear-gradient(135deg, #0F2027, #203A43, #2C5364); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Moonlit Asteroid gradient?

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