← All gradients
35%How it works
UI

Terminal Dark

#0D1117
#161B22
Text readability
Ui DarkNeutral

Terminal Dark is a dark and neutral 2-colour linear gradient that runs from near-black (#0D1117) to near-black (#161B22) at 135°. It suits dark-mode interfaces and footers and subtle surfaces and app backgrounds. White text reads best on it, at a contrast ratio of 18.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #0D1117, #161B22);
Tailwind
bg-gradient-to-br from-[#0D1117] to-[#161B22]
Figma token
{
    "terminal-dark": {
        "value": "linear-gradient(135deg, #0D1117 0%, #161B22 100%)",
        "type": "color"
    }
}

Terminal Dark gradient for SwiftUI, Flutter, Android and more

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

let terminalDarkGradient = LinearGradient(
    colors: [
        Color(red: 0.051, green: 0.067, blue: 0.09),
        Color(red: 0.086, green: 0.106, blue: 0.133)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(terminalDarkGradient)

Colours in the Terminal Dark gradient

StopNameHEXRGBHSL
1Near-black#0D1117rgb(13, 17, 23)hsl(216, 28%, 7%)
2Near-black#161B22rgb(22, 27, 34)hsl(215, 21%, 11%)

Terminal Dark gradient in use

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

Terminal Dark 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 Terminal Dark gradient?

The Terminal Dark gradient uses 2 colours: #0D1117 and #161B22, at an angle of 135°.

How do I use the Terminal Dark gradient in CSS?

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

What text colour works on the Terminal Dark gradient?

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