← All gradients
35%How it works
UI

Dark Mode Sidebar

#09090B
#18181B
Text readability
Ui DarkNeutral

Dark Mode Sidebar is a dark and neutral 2-colour linear gradient that runs from near-black (#09090B) to near-black (#18181B) 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 18.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Dark Mode Sidebar gradient for SwiftUI, Flutter, Android and more

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

let darkModeSidebarGradient = LinearGradient(
    colors: [
        Color(red: 0.035, green: 0.035, blue: 0.043),
        Color(red: 0.094, green: 0.094, blue: 0.106)
    ],
    startPoint: UnitPoint(x: 0.5, y: 0),
    endPoint: UnitPoint(x: 0.5, y: 1)
)

// Usage
Rectangle().fill(darkModeSidebarGradient)

Colours in the Dark Mode Sidebar gradient

StopNameHEXRGBHSL
1Near-black#09090Brgb(9, 9, 11)hsl(240, 10%, 4%)
2Near-black#18181Brgb(24, 24, 27)hsl(240, 6%, 10%)

Dark Mode Sidebar gradient in use

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

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

The Dark Mode Sidebar gradient uses 2 colours: #09090B and #18181B, at an angle of 180°.

How do I use the Dark Mode Sidebar gradient in CSS?

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

What text colour works on the Dark Mode Sidebar gradient?

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