← All gradients
35%How it works
Curated

Royal

#141E30
#243B55
Text readability
Curated DarkCool

Royal is a dark and cool 2-colour linear gradient that runs from charcoal (#141E30) to deep blue (#243B55) 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 14.0:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #141E30, #243B55);
Tailwind
bg-gradient-to-br from-[#141E30] to-[#243B55]
Figma token
{
    "royal": {
        "value": "linear-gradient(135deg, #141E30 0%, #243B55 100%)",
        "type": "color"
    }
}

Royal gradient for SwiftUI, Flutter, Android and more

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

let royalGradient = LinearGradient(
    colors: [
        Color(red: 0.078, green: 0.118, blue: 0.188),
        Color(red: 0.141, green: 0.231, blue: 0.333)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(royalGradient)

Colours in the Royal gradient

StopNameHEXRGBHSL
1Charcoal#141E30rgb(20, 30, 48)hsl(219, 41%, 13%)
2Deep blue#243B55rgb(36, 59, 85)hsl(212, 40%, 24%)

Royal gradient in use

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

Royal 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 Royal gradient?

The Royal gradient uses 2 colours: #141E30 and #243B55, at an angle of 135°.

How do I use the Royal gradient in CSS?

Paste background: linear-gradient(135deg, #141E30, #243B55); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Royal gradient?

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