#1E1B4B
#312E81
Dark Purple UI is a dark and cool 2-colour linear gradient that runs from deep blue (#1E1B4B) to blue (#312E81) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 13.6:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #1E1B4B, #312E81);
bg-gradient-to-br from-[#1E1B4B] to-[#312E81]
{
"dark-purple-ui": {
"value": "linear-gradient(135deg, #1E1B4B 0%, #312E81 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let darkPurpleUiGradient = LinearGradient(
colors: [
Color(red: 0.118, green: 0.106, blue: 0.294),
Color(red: 0.192, green: 0.18, blue: 0.506)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(darkPurpleUiGradient)val darkPurpleUiColors = listOf(Color(0xFF1E1B4B), Color(0xFF312E81))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = darkPurpleUiColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/dark-purple-ui_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#1E1B4B"
android:endColor="#312E81"
android:type="linear" />
</shape>const darkPurpleUiGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF1E1B4B), Color(0xFF312E81)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: darkPurpleUiGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#1E1B4B', '#312E81']}
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="dark-purple-ui" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#1E1B4B" />
<stop offset="100%" stop-color="#312E81" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#dark-purple-ui)" />
</svg>:root {
--dark-purple-ui-1: #1E1B4B;
--dark-purple-ui-2: #312E81;
--dark-purple-ui-angle: 135deg;
--dark-purple-ui: linear-gradient(var(--dark-purple-ui-angle), var(--dark-purple-ui-1), var(--dark-purple-ui-2));
}
.hero {
background: var(--dark-purple-ui);
}$dark-purple-ui-1: #1E1B4B;
$dark-purple-ui-2: #312E81;
$dark-purple-ui: linear-gradient(135deg, $dark-purple-ui-1, $dark-purple-ui-2);
@mixin dark-purple-ui-bg {
background: $dark-purple-ui-1;
background: $dark-purple-ui;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep blue | #1E1B4B | rgb(30, 27, 75) | hsl(244, 47%, 20%) |
| 2 | Blue | #312E81 | rgb(49, 46, 129) | hsl(242, 47%, 34%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Dark Purple UI gradient uses 2 colours: #1E1B4B and #312E81, at an angle of 135°.
Paste background: linear-gradient(135deg, #1E1B4B, #312E81); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 13.6:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.