#1E1B4B
#312E81
Pricing Card Pro is a cool and dark 2-colour linear gradient that runs from deep blue (#1E1B4B) to blue (#312E81) at 135°. It suits dashboards and SaaS landing pages and dark-mode interfaces and footers. 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]
{
"pricing-card-pro": {
"value": "linear-gradient(135deg, #1E1B4B 0%, #312E81 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let pricingCardProGradient = 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(pricingCardProGradient)val pricingCardProColors = listOf(Color(0xFF1E1B4B), Color(0xFF312E81))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = pricingCardProColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/pricing-card-pro_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 pricingCardProGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF1E1B4B), Color(0xFF312E81)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: pricingCardProGradient))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="pricing-card-pro" 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(#pricing-card-pro)" />
</svg>:root {
--pricing-card-pro-1: #1E1B4B;
--pricing-card-pro-2: #312E81;
--pricing-card-pro-angle: 135deg;
--pricing-card-pro: linear-gradient(var(--pricing-card-pro-angle), var(--pricing-card-pro-1), var(--pricing-card-pro-2));
}
.hero {
background: var(--pricing-card-pro);
}$pricing-card-pro-1: #1E1B4B;
$pricing-card-pro-2: #312E81;
$pricing-card-pro: linear-gradient(135deg, $pricing-card-pro-1, $pricing-card-pro-2);
@mixin pricing-card-pro-bg {
background: $pricing-card-pro-1;
background: $pricing-card-pro;
}| 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 Pricing Card Pro 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.