#09090B
#18181B
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 →
background: linear-gradient(180deg, #09090B, #18181B);
bg-gradient-to-b from-[#09090B] to-[#18181B]
{
"dark-mode-sidebar": {
"value": "linear-gradient(180deg, #09090B 0%, #18181B 100%)",
"type": "color"
}
}
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)val darkModeSidebarColors = listOf(Color(0xFF09090B), Color(0xFF18181B))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = darkModeSidebarColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/dark-mode-sidebar_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#09090B"
android:endColor="#18181B"
android:type="linear" />
</shape>const darkModeSidebarGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFF09090B), Color(0xFF18181B)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: darkModeSidebarGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#09090B', '#18181B']}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="dark-mode-sidebar" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#09090B" />
<stop offset="100%" stop-color="#18181B" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#dark-mode-sidebar)" />
</svg>:root {
--dark-mode-sidebar-1: #09090B;
--dark-mode-sidebar-2: #18181B;
--dark-mode-sidebar-angle: 180deg;
--dark-mode-sidebar: linear-gradient(var(--dark-mode-sidebar-angle), var(--dark-mode-sidebar-1), var(--dark-mode-sidebar-2));
}
.hero {
background: var(--dark-mode-sidebar);
}$dark-mode-sidebar-1: #09090B;
$dark-mode-sidebar-2: #18181B;
$dark-mode-sidebar: linear-gradient(180deg, $dark-mode-sidebar-1, $dark-mode-sidebar-2);
@mixin dark-mode-sidebar-bg {
background: $dark-mode-sidebar-1;
background: $dark-mode-sidebar;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #09090B | rgb(9, 9, 11) | hsl(240, 10%, 4%) |
| 2 | Near-black | #18181B | rgb(24, 24, 27) | hsl(240, 6%, 10%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Dark Mode Sidebar gradient uses 2 colours: #09090B and #18181B, at an angle of 180°.
Paste background: linear-gradient(180deg, #09090B, #18181B); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.