niceui

Navy Gradient

A free linear gradient you can copy as CSS or Tailwind. Sky, ocean and electric blues for tech products and dashboards.

CSS

.navy-bg {
  background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #1e3a8a 100%);
}

Tailwind CSS

With Tailwind's gradient utilities:

bg-gradient-to-b from-[#020617] via-[#0f172a] to-[#1e3a8a]

Or the exact gradient as an arbitrary value:

bg-[image:linear-gradient(180deg,#020617_0%,#0f172a_50%,#1e3a8a_100%)]
Edit this gradient in the Gradient MakerMesh, conic and animated shader gradients, grain, PNG export and one-click CSS, Tailwind, React or HTML.

FAQ

How do I use the navy gradient in CSS?

Set background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #1e3a8a 100%); on any element. It works in every modern browser.

How do I use the navy gradient in Tailwind?

Use bg-gradient-to-b from-[#020617] via-[#0f172a] to-[#1e3a8a], or the exact arbitrary value bg-[image:linear-gradient(180deg,#020617_0%,#0f172a_50%,#1e3a8a_100%)].

Similar gradients

More: Blue gradientsDark gradientsAll gradients