#111827
#1F2937
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 →
background: linear-gradient(180deg, #111827, #1F2937);
bg-gradient-to-b from-[#111827] to-[#1F2937]
{
"sidebar-dark": {
"value": "linear-gradient(180deg, #111827 0%, #1F2937 100%)",
"type": "color"
}
}
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)val sidebarDarkColors = listOf(Color(0xFF111827), Color(0xFF1F2937))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = sidebarDarkColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/sidebar-dark_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#111827"
android:endColor="#1F2937"
android:type="linear" />
</shape>const sidebarDarkGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFF111827), Color(0xFF1F2937)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: sidebarDarkGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#111827', '#1F2937']}
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="sidebar-dark" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#111827" />
<stop offset="100%" stop-color="#1F2937" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#sidebar-dark)" />
</svg>:root {
--sidebar-dark-1: #111827;
--sidebar-dark-2: #1F2937;
--sidebar-dark-angle: 180deg;
--sidebar-dark: linear-gradient(var(--sidebar-dark-angle), var(--sidebar-dark-1), var(--sidebar-dark-2));
}
.hero {
background: var(--sidebar-dark);
}$sidebar-dark-1: #111827;
$sidebar-dark-2: #1F2937;
$sidebar-dark: linear-gradient(180deg, $sidebar-dark-1, $sidebar-dark-2);
@mixin sidebar-dark-bg {
background: $sidebar-dark-1;
background: $sidebar-dark;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #111827 | rgb(17, 24, 39) | hsl(221, 39%, 11%) |
| 2 | Charcoal | #1F2937 | rgb(31, 41, 55) | hsl(215, 28%, 17%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Sidebar Dark gradient uses 2 colours: #111827 and #1F2937, at an angle of 180°.
Paste background: linear-gradient(180deg, #111827, #1F2937); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.