NBA Gradient is a warm 2-colour linear gradient that runs from blue (#1D428A) to red (#C8102E) at 135°. It is inspired by NBA’s brand colours, a reference point for sport interfaces. White text reads best on it, at a contrast ratio of 9.6:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by NBA’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by NBA. NBA 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 NBA’s. Terms
background: linear-gradient(135deg, #1D428A, #C8102E);
bg-gradient-to-br from-[#1D428A] to-[#C8102E]
{
"nba": {
"value": "linear-gradient(135deg, #1D428A 0%, #C8102E 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let nbaGradient = LinearGradient(
colors: [
Color(red: 0.114, green: 0.259, blue: 0.541),
Color(red: 0.784, green: 0.063, blue: 0.18)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(nbaGradient)val nbaColors = listOf(Color(0xFF1D428A), Color(0xFFC8102E))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = nbaColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/nba_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#1D428A"
android:endColor="#C8102E"
android:type="linear" />
</shape>const nbaGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF1D428A), Color(0xFFC8102E)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: nbaGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#1D428A', '#C8102E']}
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="nba" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#1D428A" />
<stop offset="100%" stop-color="#C8102E" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#nba)" />
</svg>:root {
--nba-1: #1D428A;
--nba-2: #C8102E;
--nba-angle: 135deg;
--nba: linear-gradient(var(--nba-angle), var(--nba-1), var(--nba-2));
}
.hero {
background: var(--nba);
}$nba-1: #1D428A;
$nba-2: #C8102E;
$nba: linear-gradient(135deg, $nba-1, $nba-2);
@mixin nba-bg {
background: $nba-1;
background: $nba;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #1D428A | rgb(29, 66, 138) | hsl(220, 65%, 33%) |
| 2 | Red | #C8102E | rgb(200, 16, 46) | hsl(350, 85%, 42%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The NBA Gradient uses 2 colours: #1D428A and #C8102E, at an angle of 135°.
Paste background: linear-gradient(135deg, #1D428A, #C8102E); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 9.6:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.