← All gradients
35%How it works
UI

Dark Mode Card

#18181B
#27272A
Text readability
Ui DarkNeutral

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

CSS
background: linear-gradient(135deg, #18181B, #27272A);
Tailwind
bg-gradient-to-br from-[#18181B] to-[#27272A]
Figma token
{
    "dark-mode-card": {
        "value": "linear-gradient(135deg, #18181B 0%, #27272A 100%)",
        "type": "color"
    }
}

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

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

let darkModeCardGradient = LinearGradient(
    colors: [
        Color(red: 0.094, green: 0.094, blue: 0.106),
        Color(red: 0.153, green: 0.153, blue: 0.165)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(darkModeCardGradient)

Colours in the Dark Mode Card gradient

StopNameHEXRGBHSL
1Near-black#18181Brgb(24, 24, 27)hsl(240, 6%, 10%)
2Charcoal#27272Argb(39, 39, 42)hsl(240, 4%, 16%)

Dark Mode Card gradient in use

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

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

The Dark Mode Card gradient uses 2 colours: #18181B and #27272A, at an angle of 135°.

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

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

What text colour works on the Dark Mode Card 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.