#0A1F5C
#1B3FA0
#D4AF37
Royal Blue and Gold is a bold and cool 3-colour linear gradient that runs from deep blue (#0A1F5C) through blue (#1B3FA0) to yellow (#D4AF37) at 135°. It suits banners and attention-grabbing headers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 7.0:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(135deg, #0A1F5C, #1B3FA0, #D4AF37);
bg-gradient-to-br from-[#0A1F5C] via-[#1B3FA0] to-[#D4AF37]
{
"royal-blue-and-gold": {
"value": "linear-gradient(135deg, #0A1F5C 0%, #1B3FA0 50%, #D4AF37 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let royalBlueAndGoldGradient = LinearGradient(
colors: [
Color(red: 0.039, green: 0.122, blue: 0.361),
Color(red: 0.106, green: 0.247, blue: 0.627),
Color(red: 0.831, green: 0.686, blue: 0.216)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(royalBlueAndGoldGradient)val royalBlueAndGoldColors = listOf(Color(0xFF0A1F5C), Color(0xFF1B3FA0), Color(0xFFD4AF37))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = royalBlueAndGoldColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/royal-blue-and-gold_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#0A1F5C"
android:centerColor="#1B3FA0"
android:endColor="#D4AF37"
android:type="linear" />
</shape>const royalBlueAndGoldGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF0A1F5C), Color(0xFF1B3FA0), Color(0xFFD4AF37)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: royalBlueAndGoldGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0A1F5C', '#1B3FA0', '#D4AF37']}
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="royal-blue-and-gold" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#0A1F5C" />
<stop offset="50%" stop-color="#1B3FA0" />
<stop offset="100%" stop-color="#D4AF37" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#royal-blue-and-gold)" />
</svg>:root {
--royal-blue-and-gold-1: #0A1F5C;
--royal-blue-and-gold-2: #1B3FA0;
--royal-blue-and-gold-3: #D4AF37;
--royal-blue-and-gold-angle: 135deg;
--royal-blue-and-gold: linear-gradient(var(--royal-blue-and-gold-angle), var(--royal-blue-and-gold-1), var(--royal-blue-and-gold-2), var(--royal-blue-and-gold-3));
}
.hero {
background: var(--royal-blue-and-gold);
}$royal-blue-and-gold-1: #0A1F5C;
$royal-blue-and-gold-2: #1B3FA0;
$royal-blue-and-gold-3: #D4AF37;
$royal-blue-and-gold: linear-gradient(135deg, $royal-blue-and-gold-1, $royal-blue-and-gold-2, $royal-blue-and-gold-3);
@mixin royal-blue-and-gold-bg {
background: $royal-blue-and-gold-1;
background: $royal-blue-and-gold;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep blue | #0A1F5C | rgb(10, 31, 92) | hsl(225, 80%, 20%) |
| 2 | Blue | #1B3FA0 | rgb(27, 63, 160) | hsl(224, 71%, 37%) |
| 3 | Yellow | #D4AF37 | rgb(212, 175, 55) | hsl(46, 65%, 52%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Royal Blue and Gold gradient uses 3 colours: #0A1F5C, #1B3FA0 and #D4AF37, at an angle of 135°.
Paste background: linear-gradient(135deg, #0A1F5C, #1B3FA0, #D4AF37); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 7.0:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.