Back to generator

Midnight Diagonal Gradient CSS

Midnight Diagonal is a midnight blue drama gradient built with linear CSS syntax.

background

Gradient Field

Output

Copy-ready CSS

Pure CSS

background: linear-gradient(45deg, #7c3aed 0%, #1d4ed8 50%, #020617 100%);

Tailwind v4

bg-[linear-gradient(45deg\,_#7c3aed_0%\,_#1d4ed8_50%\,_#020617_100%)]
Try it in the generator

When to use it

Midnight Diagonal is a dark linear gradient preset for backgrounds, buttons, hero panels, cards, and visual accents. It uses 3 color stops (#7c3aed, #1d4ed8, #020617) to create a repeatable CSS background without image assets. Midnight Diagonal is a midnight blue drama gradient built with linear CSS syntax. The preset is intentionally stored as a complete background declaration, which makes it easy to paste into a stylesheet, component style, or Tailwind arbitrary value. Use it when a flat fill needs more movement, or when you want a strong color system for a section. Open the generator to switch between linear, radial, and conic modes, adjust angle or center position, and move individual stops until the transition fits your layout.

Hexpedia

Color reference

Review the gradient stop colors used by Midnight Diagonal in Hexpedia.

Explore more

More CSS Forge paths

Related

Similar gradients

These presets share color and mode tags with Midnight Diagonal.