← All gradients
35%How it works
UI

Sidebar Dark

#111827
#1F2937
Text readability
Ui DarkNeutral

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

CSS
background: linear-gradient(180deg, #111827, #1F2937);
Tailwind
bg-gradient-to-b from-[#111827] to-[#1F2937]
Figma token
{
    "sidebar-dark": {
        "value": "linear-gradient(180deg, #111827 0%, #1F2937 100%)",
        "type": "color"
    }
}

Sidebar Dark gradient for SwiftUI, Flutter, Android and more

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

let sidebarDarkGradient = LinearGradient(
    colors: [
        Color(red: 0.067, green: 0.094, blue: 0.153),
        Color(red: 0.122, green: 0.161, blue: 0.216)
    ],
    startPoint: UnitPoint(x: 0.5, y: 0),
    endPoint: UnitPoint(x: 0.5, y: 1)
)

// Usage
Rectangle().fill(sidebarDarkGradient)

Colours in the Sidebar Dark gradient

StopNameHEXRGBHSL
1Near-black#111827rgb(17, 24, 39)hsl(221, 39%, 11%)
2Charcoal#1F2937rgb(31, 41, 55)hsl(215, 28%, 17%)

Sidebar Dark gradient in use

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

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

The Sidebar Dark gradient uses 2 colours: #111827 and #1F2937, at an angle of 180°.

How do I use the Sidebar Dark gradient in CSS?

Paste background: linear-gradient(180deg, #111827, #1F2937); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Sidebar Dark gradient?

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