#0B1026
#27306E
#E0457B
GTA 6 Midnight Drive-Inspired Gradient is a dark 3-colour linear gradient that runs from near-black (#0B1026) through blue (#27306E) to pink (#E0457B) at 170°. It is inspired by Rockstar Games’s brand colours, a reference point for media interfaces. White text reads best on it, at a contrast ratio of 10.7:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by Rockstar Games’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Rockstar Games. Rockstar Games 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 Rockstar Games’s. Terms
background: linear-gradient(170deg, #0B1026, #27306E, #E0457B);
bg-[linear-gradient(170deg,#0B1026,#27306E,#E0457B)]
{
"gta-6-midnight-drive-inspired": {
"value": "linear-gradient(170deg, #0B1026 0%, #27306E 50%, #E0457B 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let gta6MidnightDriveInspiredGradient = LinearGradient(
colors: [
Color(red: 0.043, green: 0.063, blue: 0.149),
Color(red: 0.153, green: 0.188, blue: 0.431),
Color(red: 0.878, green: 0.271, blue: 0.482)
],
startPoint: UnitPoint(x: 0.412, y: 0),
endPoint: UnitPoint(x: 0.588, y: 1)
)
// Usage
Rectangle().fill(gta6MidnightDriveInspiredGradient)val gta6MidnightDriveInspiredColors = listOf(Color(0xFF0B1026), Color(0xFF27306E), Color(0xFFE0457B))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = gta6MidnightDriveInspiredColors,
start = Offset(size.width * 0.412f, size.height * 0f),
end = Offset(size.width * 0.588f, size.height * 1f)
)
)
}<!-- res/drawable/gta-6-midnight-drive-inspired_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#0B1026"
android:centerColor="#27306E"
android:endColor="#E0457B"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 170deg in CSS is 280°, rounded to 270°. -->const gta6MidnightDriveInspiredGradient = LinearGradient(
begin: Alignment(-0.176, -1),
end: Alignment(0.176, 1),
colors: [Color(0xFF0B1026), Color(0xFF27306E), Color(0xFFE0457B)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: gta6MidnightDriveInspiredGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0B1026', '#27306E', '#E0457B']}
start={{ x: 0.412, y: 0 }}
end={{ x: 0.588, 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="gta-6-midnight-drive-inspired" x1="0.412" y1="0" x2="0.588" y2="1">
<stop offset="0%" stop-color="#0B1026" />
<stop offset="50%" stop-color="#27306E" />
<stop offset="100%" stop-color="#E0457B" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#gta-6-midnight-drive-inspired)" />
</svg>:root {
--gta-6-midnight-drive-inspired-1: #0B1026;
--gta-6-midnight-drive-inspired-2: #27306E;
--gta-6-midnight-drive-inspired-3: #E0457B;
--gta-6-midnight-drive-inspired-angle: 170deg;
--gta-6-midnight-drive-inspired: linear-gradient(var(--gta-6-midnight-drive-inspired-angle), var(--gta-6-midnight-drive-inspired-1), var(--gta-6-midnight-drive-inspired-2), var(--gta-6-midnight-drive-inspired-3));
}
.hero {
background: var(--gta-6-midnight-drive-inspired);
}$gta-6-midnight-drive-inspired-1: #0B1026;
$gta-6-midnight-drive-inspired-2: #27306E;
$gta-6-midnight-drive-inspired-3: #E0457B;
$gta-6-midnight-drive-inspired: linear-gradient(170deg, $gta-6-midnight-drive-inspired-1, $gta-6-midnight-drive-inspired-2, $gta-6-midnight-drive-inspired-3);
@mixin gta-6-midnight-drive-inspired-bg {
background: $gta-6-midnight-drive-inspired-1;
background: $gta-6-midnight-drive-inspired;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #0B1026 | rgb(11, 16, 38) | hsl(229, 55%, 10%) |
| 2 | Blue | #27306E | rgb(39, 48, 110) | hsl(232, 48%, 29%) |
| 3 | Pink | #E0457B | rgb(224, 69, 123) | hsl(339, 71%, 57%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The GTA 6 Midnight Drive-Inspired Gradient uses 3 colours: #0B1026, #27306E and #E0457B, at an angle of 170°.
Paste background: linear-gradient(170deg, #0B1026, #27306E, #E0457B); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 10.7:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.