← All gradients
35%How it works
UI

Ocean UI

#0C4A6E
#075985
#0284C7
Text readability
Ui DarkCoolBold

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 →

CSS
background: linear-gradient(135deg, #0C4A6E, #075985, #0284C7);
Tailwind
bg-gradient-to-br from-[#0C4A6E] via-[#075985] to-[#0284C7]
Figma token
{
    "ocean-ui": {
        "value": "linear-gradient(135deg, #0C4A6E 0%, #075985 50%, #0284C7 100%)",
        "type": "color"
    }
}

Ocean UI gradient for SwiftUI, Flutter, Android and more

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)

Colours in the Ocean UI gradient

StopNameHEXRGBHSL
1Deep blue#0C4A6Ergb(12, 74, 110)hsl(202, 80%, 24%)
2Deep blue#075985rgb(7, 89, 133)hsl(201, 90%, 27%)
3Blue#0284C7rgb(2, 132, 199)hsl(200, 98%, 39%)

Ocean UI gradient in use

Build something beautifulA hero section on the Ocean UI gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Ocean UI gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Ocean UI gradient?

The Ocean UI gradient uses 3 colours: #0C4A6E, #075985 and #0284C7, at an angle of 135°.

How do I use the Ocean UI gradient in CSS?

Paste background: linear-gradient(135deg, #0C4A6E, #075985, #0284C7); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Ocean UI gradient?

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.