#232526
#414345
Midnight City is a dark and neutral 2-colour linear gradient that runs from charcoal (#232526) to charcoal (#414345) 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 12.5:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #232526, #414345);
bg-gradient-to-br from-[#232526] to-[#414345]
{
"midnight-city": {
"value": "linear-gradient(135deg, #232526 0%, #414345 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let midnightCityGradient = LinearGradient(
colors: [
Color(red: 0.137, green: 0.145, blue: 0.149),
Color(red: 0.255, green: 0.263, blue: 0.271)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(midnightCityGradient)val midnightCityColors = listOf(Color(0xFF232526), Color(0xFF414345))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = midnightCityColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/midnight-city_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#232526"
android:endColor="#414345"
android:type="linear" />
</shape>const midnightCityGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF232526), Color(0xFF414345)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: midnightCityGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#232526', '#414345']}
start={{ x: 0, y: 0 }}
end={{ x: 1, 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="midnight-city" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#232526" />
<stop offset="100%" stop-color="#414345" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#midnight-city)" />
</svg>:root {
--midnight-city-1: #232526;
--midnight-city-2: #414345;
--midnight-city-angle: 135deg;
--midnight-city: linear-gradient(var(--midnight-city-angle), var(--midnight-city-1), var(--midnight-city-2));
}
.hero {
background: var(--midnight-city);
}$midnight-city-1: #232526;
$midnight-city-2: #414345;
$midnight-city: linear-gradient(135deg, $midnight-city-1, $midnight-city-2);
@mixin midnight-city-bg {
background: $midnight-city-1;
background: $midnight-city;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Charcoal | #232526 | rgb(35, 37, 38) | hsl(200, 4%, 14%) |
| 2 | Charcoal | #414345 | rgb(65, 67, 69) | hsl(210, 3%, 26%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Midnight City gradient uses 2 colours: #232526 and #414345, at an angle of 135°.
Paste background: linear-gradient(135deg, #232526, #414345); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 12.5:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.