← All gradients
35%How it works
DEV ↗

Dev.to Gradient

#0A0A0A
#3D3D3D
Text readability
Brand DarkNeutral Tech

Dev.to Gradient is a dark and neutral 2-colour linear gradient that runs from near-black (#0A0A0A) to charcoal (#3D3D3D) at 135°. It is inspired by DEV’s brand colours, a reference point for tech interfaces. White text reads best on it, at a contrast ratio of 15.6:1 against the gradient’s average colour (AAA). Check every point, not just the average →

Unofficial reference: inspired by DEV’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by DEV. DEV 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 DEV’s. Terms

CSS
background: linear-gradient(135deg, #0A0A0A, #3D3D3D);
Tailwind
bg-gradient-to-br from-[#0A0A0A] to-[#3D3D3D]
Figma token
{
    "dev-to": {
        "value": "linear-gradient(135deg, #0A0A0A 0%, #3D3D3D 100%)",
        "type": "color"
    }
}

Dev.to Gradient for SwiftUI, Flutter, Android and more

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

let devToGradient = LinearGradient(
    colors: [
        Color(red: 0.039, green: 0.039, blue: 0.039),
        Color(red: 0.239, green: 0.239, blue: 0.239)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(devToGradient)

Colours in the Dev.to Gradient

StopNameHEXRGBHSL
1Near-black#0A0A0Argb(10, 10, 10)hsl(0, 0%, 4%)
2Charcoal#3D3D3Drgb(61, 61, 61)hsl(0, 0%, 24%)

Dev.to Gradient in use

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

Dev.to 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 Dev.to Gradient?

The Dev.to Gradient uses 2 colours: #0A0A0A and #3D3D3D, at an angle of 135°.

How do I use the Dev.to Gradient in CSS?

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

What text colour works on the Dev.to Gradient?

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