This midnight to red to blue radial gradient is an editable CSS color system generated with OKLCH-aware perceptual interpolation, multi-stop fallback compilation, and Tailwind CSS utility export. It preserves chroma during transitions, reducing muddy gray midpoints while giving developers production-ready CSS and designers precise visual control.

SEO gradient page

midnight to red to blue radial CSS gradient

Edit this gradient in the studio, copy production CSS, compare accessibility, and explore related color combinations generated from the same seed colors.

#40004e#ec0037#704ab9

Gradient guide

How to use this midnight to red to blue gradient

This radial gradient can be used as a hero background, dashboard card treatment, app shell backdrop, social visual, or landing page accent. The color sequence is parsed directly from the URL, which means the page can be shared, indexed, and revisited.

The export system creates a standard CSS fallback, a perceptual multi-stop fallback, and a modern OKLCH declaration where appropriate. That makes the output useful for production interfaces, not just screenshots or static inspiration boards.

Use the related-gradient matrix below to explore adjacent hues, lightness shifts, and route variations. Each link is generated deterministically so search crawlers and users always see stable, crawlable internal links.

Interactive editor

Edit this gradient

Physics Preview Workspace

Perceptual CSS gradients without muddy midpoints.

Build layered linear, radial, conic, and mesh gradients using OKLCH, LAB, HCL, easing curves, blend modes, and fallback compilers.

White text

8.86:1

WCAG AA friendly

Black text

3.11:1

Needs overlay

Pre-rendered CSS output

.prismforge-gradient {
  background: radial-gradient(circle at 50% 45%, #40004e 0%, #ec0037 50%, #704ab9 100%);
  background: radial-gradient(circle at 50% 45%, #40004e 0%, #43004f 4.5%, #4b0053 9.1%, #590059 13.6%, #6e005e 18.2%, #890060 22.7%, #a5005d 27.3%, #bf0055 31.8%, #d4004b 36.4%, #e20041 40.9%, #ea003a 45.5%, #ec0037 50%, #eb003c 54.5%, #e8004a 59.1%, #e2005f 63.6%, #d70577 68.2%, #c61b90 72.7%, #b12ba5 77.3%, #9b38b3 81.8%, #8841b8 86.4%, #7b46ba 90.9%, #7349b9 95.5%, #704ab9 100%);
  background: radial-gradient(circle at 50% 45% in oklch, oklch(27.20% 0.1313 318.93) 0%, oklch(59.57% 0.2399 21.70) 50%, oklch(50.85% 0.1678 295.61) 100%);
  background-blend-mode: normal;
}

Full-width inspiration gallery

120 mathematically tuned gradient collections.

Each preset links to an indexable dynamic route with deterministic related gradients, metadata, crawlable anchors, and editable OKLCH controls.