#2196F3
#F44336
Politics is a bold 2-colour linear gradient that runs from blue (#2196F3) to red (#F44336) at 90°. It suits banners and attention-grabbing headers. Black text reads best on it, at a contrast ratio of 4.7:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(90deg, #2196F3, #F44336);
bg-gradient-to-r from-[#2196F3] to-[#F44336]
{
"politics": {
"value": "linear-gradient(90deg, #2196F3 0%, #F44336 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let politicsGradient = LinearGradient(
colors: [
Color(red: 0.129, green: 0.588, blue: 0.953),
Color(red: 0.957, green: 0.263, blue: 0.212)
],
startPoint: UnitPoint(x: 0, y: 0.5),
endPoint: UnitPoint(x: 1, y: 0.5)
)
// Usage
Rectangle().fill(politicsGradient)val politicsColors = listOf(Color(0xFF2196F3), Color(0xFFF44336))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = politicsColors,
start = Offset(size.width * 0f, size.height * 0.5f),
end = Offset(size.width * 1f, size.height * 0.5f)
)
)
}<!-- res/drawable/politics_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#2196F3"
android:endColor="#F44336"
android:type="linear" />
</shape>const politicsGradient = LinearGradient(
begin: Alignment(-1, 0),
end: Alignment(1, 0),
colors: [Color(0xFF2196F3), Color(0xFFF44336)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: politicsGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#2196F3', '#F44336']}
start={{ x: 0, y: 0.5 }}
end={{ x: 1, y: 0.5 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="politics" x1="0" y1="0.5" x2="1" y2="0.5">
<stop offset="0%" stop-color="#2196F3" />
<stop offset="100%" stop-color="#F44336" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#politics)" />
</svg>:root {
--politics-1: #2196F3;
--politics-2: #F44336;
--politics-angle: 90deg;
--politics: linear-gradient(var(--politics-angle), var(--politics-1), var(--politics-2));
}
.hero {
background: var(--politics);
}$politics-1: #2196F3;
$politics-2: #F44336;
$politics: linear-gradient(90deg, $politics-1, $politics-2);
@mixin politics-bg {
background: $politics-1;
background: $politics;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #2196F3 | rgb(33, 150, 243) | hsl(207, 90%, 54%) |
| 2 | Red | #F44336 | rgb(244, 67, 54) | hsl(4, 90%, 58%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Politics gradient uses 2 colours: #2196F3 and #F44336, at an angle of 90°.
Paste background: linear-gradient(90deg, #2196F3, #F44336); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 4.7:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.