#1E293B
#0F172A
Dark Table Header is a dark and neutral 2-colour linear gradient that runs from charcoal (#1E293B) to near-black (#0F172A) 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, #1E293B, #0F172A);
bg-gradient-to-b from-[#1E293B] to-[#0F172A]
{
"dark-table-header": {
"value": "linear-gradient(180deg, #1E293B 0%, #0F172A 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let darkTableHeaderGradient = LinearGradient(
colors: [
Color(red: 0.118, green: 0.161, blue: 0.231),
Color(red: 0.059, green: 0.09, blue: 0.165)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(darkTableHeaderGradient)val darkTableHeaderColors = listOf(Color(0xFF1E293B), Color(0xFF0F172A))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = darkTableHeaderColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/dark-table-header_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#1E293B"
android:endColor="#0F172A"
android:type="linear" />
</shape>const darkTableHeaderGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFF1E293B), Color(0xFF0F172A)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: darkTableHeaderGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#1E293B', '#0F172A']}
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-table-header" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#1E293B" />
<stop offset="100%" stop-color="#0F172A" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#dark-table-header)" />
</svg>:root {
--dark-table-header-1: #1E293B;
--dark-table-header-2: #0F172A;
--dark-table-header-angle: 180deg;
--dark-table-header: linear-gradient(var(--dark-table-header-angle), var(--dark-table-header-1), var(--dark-table-header-2));
}
.hero {
background: var(--dark-table-header);
}$dark-table-header-1: #1E293B;
$dark-table-header-2: #0F172A;
$dark-table-header: linear-gradient(180deg, $dark-table-header-1, $dark-table-header-2);
@mixin dark-table-header-bg {
background: $dark-table-header-1;
background: $dark-table-header;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Charcoal | #1E293B | rgb(30, 41, 59) | hsl(217, 33%, 17%) |
| 2 | Near-black | #0F172A | rgb(15, 23, 42) | hsl(222, 47%, 11%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Dark Table Header gradient uses 2 colours: #1E293B and #0F172A, at an angle of 180°.
Paste background: linear-gradient(180deg, #1E293B, #0F172A); 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.