#0C4A6E
#075985
#0284C7
Ocean UI is a dark, cool and bold 3-colour linear gradient that runs from deep blue (#0C4A6E) through deep blue (#075985) to blue (#0284C7) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 6.6:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(135deg, #0C4A6E, #075985, #0284C7);
bg-gradient-to-br from-[#0C4A6E] via-[#075985] to-[#0284C7]
{
"ocean-ui": {
"value": "linear-gradient(135deg, #0C4A6E 0%, #075985 50%, #0284C7 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let oceanUiGradient = LinearGradient(
colors: [
Color(red: 0.047, green: 0.29, blue: 0.431),
Color(red: 0.027, green: 0.349, blue: 0.522),
Color(red: 0.008, green: 0.518, blue: 0.78)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(oceanUiGradient)val oceanUiColors = listOf(Color(0xFF0C4A6E), Color(0xFF075985), Color(0xFF0284C7))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = oceanUiColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/ocean-ui_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#0C4A6E"
android:centerColor="#075985"
android:endColor="#0284C7"
android:type="linear" />
</shape>const oceanUiGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF0C4A6E), Color(0xFF075985), Color(0xFF0284C7)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: oceanUiGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0C4A6E', '#075985', '#0284C7']}
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="ocean-ui" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#0C4A6E" />
<stop offset="50%" stop-color="#075985" />
<stop offset="100%" stop-color="#0284C7" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#ocean-ui)" />
</svg>:root {
--ocean-ui-1: #0C4A6E;
--ocean-ui-2: #075985;
--ocean-ui-3: #0284C7;
--ocean-ui-angle: 135deg;
--ocean-ui: linear-gradient(var(--ocean-ui-angle), var(--ocean-ui-1), var(--ocean-ui-2), var(--ocean-ui-3));
}
.hero {
background: var(--ocean-ui);
}$ocean-ui-1: #0C4A6E;
$ocean-ui-2: #075985;
$ocean-ui-3: #0284C7;
$ocean-ui: linear-gradient(135deg, $ocean-ui-1, $ocean-ui-2, $ocean-ui-3);
@mixin ocean-ui-bg {
background: $ocean-ui-1;
background: $ocean-ui;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep blue | #0C4A6E | rgb(12, 74, 110) | hsl(202, 80%, 24%) |
| 2 | Deep blue | #075985 | rgb(7, 89, 133) | hsl(201, 90%, 27%) |
| 3 | Blue | #0284C7 | rgb(2, 132, 199) | hsl(200, 98%, 39%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Ocean UI gradient uses 3 colours: #0C4A6E, #075985 and #0284C7, at an angle of 135°.
Paste background: linear-gradient(135deg, #0C4A6E, #075985, #0284C7); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 6.6:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.