Mercury Gradient is a cool and dark 2-colour linear gradient that runs from blue (#1F2FBB) to blue (#0A6CDC) at 135°. It is inspired by Mercury’s brand colours, a reference point for finance interfaces. White text reads best on it, at a contrast ratio of 7.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by Mercury’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Mercury. Mercury is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Mercury’s. Terms
background: linear-gradient(135deg, #1F2FBB, #0A6CDC);
bg-gradient-to-br from-[#1F2FBB] to-[#0A6CDC]
{
"mercury": {
"value": "linear-gradient(135deg, #1F2FBB 0%, #0A6CDC 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let mercuryGradient = LinearGradient(
colors: [
Color(red: 0.122, green: 0.184, blue: 0.733),
Color(red: 0.039, green: 0.424, blue: 0.863)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(mercuryGradient)val mercuryColors = listOf(Color(0xFF1F2FBB), Color(0xFF0A6CDC))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = mercuryColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/mercury_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#1F2FBB"
android:endColor="#0A6CDC"
android:type="linear" />
</shape>const mercuryGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF1F2FBB), Color(0xFF0A6CDC)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: mercuryGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#1F2FBB', '#0A6CDC']}
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="mercury" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#1F2FBB" />
<stop offset="100%" stop-color="#0A6CDC" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#mercury)" />
</svg>:root {
--mercury-1: #1F2FBB;
--mercury-2: #0A6CDC;
--mercury-angle: 135deg;
--mercury: linear-gradient(var(--mercury-angle), var(--mercury-1), var(--mercury-2));
}
.hero {
background: var(--mercury);
}$mercury-1: #1F2FBB;
$mercury-2: #0A6CDC;
$mercury: linear-gradient(135deg, $mercury-1, $mercury-2);
@mixin mercury-bg {
background: $mercury-1;
background: $mercury;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #1F2FBB | rgb(31, 47, 187) | hsl(234, 72%, 43%) |
| 2 | Blue | #0A6CDC | rgb(10, 108, 220) | hsl(212, 91%, 45%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Mercury Gradient uses 2 colours: #1F2FBB and #0A6CDC, at an angle of 135°.
Paste background: linear-gradient(135deg, #1F2FBB, #0A6CDC); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 7.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.