#0A0A0A
#141414
Dark Mode Nav is a dark and neutral 2-colour linear gradient that runs from near-black (#0A0A0A) to near-black (#141414) at 90°. It suits dark-mode interfaces and footers and subtle surfaces and app backgrounds. White text reads best on it, at a contrast ratio of 19.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(90deg, #0A0A0A, #141414);
bg-gradient-to-r from-[#0A0A0A] to-[#141414]
{
"dark-mode-nav": {
"value": "linear-gradient(90deg, #0A0A0A 0%, #141414 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let darkModeNavGradient = LinearGradient(
colors: [
Color(red: 0.039, green: 0.039, blue: 0.039),
Color(red: 0.078, green: 0.078, blue: 0.078)
],
startPoint: UnitPoint(x: 0, y: 0.5),
endPoint: UnitPoint(x: 1, y: 0.5)
)
// Usage
Rectangle().fill(darkModeNavGradient)val darkModeNavColors = listOf(Color(0xFF0A0A0A), Color(0xFF141414))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = darkModeNavColors,
start = Offset(size.width * 0f, size.height * 0.5f),
end = Offset(size.width * 1f, size.height * 0.5f)
)
)
}<!-- res/drawable/dark-mode-nav_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#0A0A0A"
android:endColor="#141414"
android:type="linear" />
</shape>const darkModeNavGradient = LinearGradient(
begin: Alignment(-1, 0),
end: Alignment(1, 0),
colors: [Color(0xFF0A0A0A), Color(0xFF141414)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: darkModeNavGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0A0A0A', '#141414']}
start={{ x: 0, y: 0.5 }}
end={{ x: 1, y: 0.5 }}
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-nav" x1="0" y1="0.5" x2="1" y2="0.5">
<stop offset="0%" stop-color="#0A0A0A" />
<stop offset="100%" stop-color="#141414" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#dark-mode-nav)" />
</svg>:root {
--dark-mode-nav-1: #0A0A0A;
--dark-mode-nav-2: #141414;
--dark-mode-nav-angle: 90deg;
--dark-mode-nav: linear-gradient(var(--dark-mode-nav-angle), var(--dark-mode-nav-1), var(--dark-mode-nav-2));
}
.hero {
background: var(--dark-mode-nav);
}$dark-mode-nav-1: #0A0A0A;
$dark-mode-nav-2: #141414;
$dark-mode-nav: linear-gradient(90deg, $dark-mode-nav-1, $dark-mode-nav-2);
@mixin dark-mode-nav-bg {
background: $dark-mode-nav-1;
background: $dark-mode-nav;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #0A0A0A | rgb(10, 10, 10) | hsl(0, 0%, 4%) |
| 2 | Near-black | #141414 | rgb(20, 20, 20) | hsl(0, 0%, 8%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Dark Mode Nav gradient uses 2 colours: #0A0A0A and #141414, at an angle of 90°.
Paste background: linear-gradient(90deg, #0A0A0A, #141414); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 19.2:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.