niceui

Midnight Gradient

A free radial gradient you can copy as CSS or Tailwind. Deep, low-contrast gradients for dark mode heroes and app backgrounds.

CSS

.midnight-bg {
  background: radial-gradient(circle at 50% 30%, #0c4a6e 0%, #020617 70%, #000000 100%);
}

Tailwind CSS

bg-[image:radial-gradient(circle_at_50%_30%,#0c4a6e_0%,#020617_70%,#000000_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 midnight gradient in CSS?

Set background: radial-gradient(circle at 50% 30%, #0c4a6e 0%, #020617 70%, #000000 100%); on any element. It works in every modern browser.

How do I use the midnight gradient in Tailwind?

Use the arbitrary value class bg-[image:radial-gradient(circle_at_50%_30%,#0c4a6e_0%,#020617_70%,#000000_100%)].

Similar gradients

More: Dark gradientsBlue gradientsAll gradients