← All gradients
35%How it works
DC ↗

DC Gradient

#0476F2
#012B5D
Text readability
Brand CoolDark Media

DC Gradient is a cool and dark 2-colour linear gradient that runs from blue (#0476F2) to deep blue (#012B5D) at 135°. It is inspired by DC’s brand colours, a reference point for media interfaces. White text reads best on it, at a contrast ratio of 7.7:1 against the gradient’s average colour (AAA). Check every point, not just the average →

Unofficial reference: inspired by DC’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by DC. DC is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like DC’s. Terms

CSS
background: linear-gradient(135deg, #0476F2, #012B5D);
Tailwind
bg-gradient-to-br from-[#0476F2] to-[#012B5D]
Figma token
{
    "dc": {
        "value": "linear-gradient(135deg, #0476F2 0%, #012B5D 100%)",
        "type": "color"
    }
}

DC Gradient for SwiftUI, Flutter, Android and more

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

let dcGradient = LinearGradient(
    colors: [
        Color(red: 0.016, green: 0.463, blue: 0.949),
        Color(red: 0.004, green: 0.169, blue: 0.365)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(dcGradient)

Colours in the DC Gradient

StopNameHEXRGBHSL
1Blue#0476F2rgb(4, 118, 242)hsl(211, 97%, 48%)
2Deep blue#012B5Drgb(1, 43, 93)hsl(213, 98%, 18%)

DC Gradient in use

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

DC 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 DC Gradient?

The DC Gradient uses 2 colours: #0476F2 and #012B5D, at an angle of 135°.

How do I use the DC Gradient in CSS?

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

What text colour works on the DC Gradient?

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