← All gradients
35%How it works
UI

Deep Navy UI

#0A192F
#172A45
Text readability
Ui DarkCool

Deep Navy UI is a dark and cool 2-colour linear gradient that runs from near-black (#0A192F) to deep blue (#172A45) 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 16.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #0A192F, #172A45);
Tailwind
bg-gradient-to-br from-[#0A192F] to-[#172A45]
Figma token
{
    "deep-navy-ui": {
        "value": "linear-gradient(135deg, #0A192F 0%, #172A45 100%)",
        "type": "color"
    }
}

Deep Navy UI gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let deepNavyUiGradient = LinearGradient(
    colors: [
        Color(red: 0.039, green: 0.098, blue: 0.184),
        Color(red: 0.09, green: 0.165, blue: 0.271)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(deepNavyUiGradient)

Colours in the Deep Navy UI gradient

StopNameHEXRGBHSL
1Near-black#0A192Frgb(10, 25, 47)hsl(216, 65%, 11%)
2Deep blue#172A45rgb(23, 42, 69)hsl(215, 50%, 18%)

Deep Navy UI gradient in use

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

Deep Navy 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 Deep Navy UI gradient?

The Deep Navy UI gradient uses 2 colours: #0A192F and #172A45, at an angle of 135°.

How do I use the Deep Navy UI gradient in CSS?

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

What text colour works on the Deep Navy UI gradient?

White text has the best contrast, at 16.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.