← All gradients
35%How it works
Curated

Afternoon

#000C40
#607D8B
Text readability
Curated DarkCool

Afternoon is a dark and cool 2-colour linear gradient that runs from deep blue (#000C40) to teal (#607D8B) 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 9.7:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #000C40, #607D8B);
Tailwind
bg-gradient-to-br from-[#000C40] to-[#607D8B]
Figma token
{
    "afternoon": {
        "value": "linear-gradient(135deg, #000C40 0%, #607D8B 100%)",
        "type": "color"
    }
}

Afternoon gradient for SwiftUI, Flutter, Android and more

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

let afternoonGradient = LinearGradient(
    colors: [
        Color(red: 0, green: 0.047, blue: 0.251),
        Color(red: 0.376, green: 0.49, blue: 0.545)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(afternoonGradient)

Colours in the Afternoon gradient

StopNameHEXRGBHSL
1Deep blue#000C40rgb(0, 12, 64)hsl(229, 100%, 13%)
2Teal#607D8Brgb(96, 125, 139)hsl(200, 18%, 46%)

Afternoon gradient in use

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

Afternoon 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 Afternoon gradient?

The Afternoon gradient uses 2 colours: #000C40 and #607D8B, at an angle of 135°.

How do I use the Afternoon gradient in CSS?

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

What text colour works on the Afternoon gradient?

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