This midnight to red to slate linear 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 slate linear CSS gradient

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

#10013d#c3151b#31599a

Gradient guide

How to use this midnight to red to slate gradient

This linear 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

10.75:1

WCAG AA friendly

Black text

2.52:1

Needs overlay

Pre-rendered CSS output

.css-gradient-pro-gradient {
  background: linear-gradient(135deg, #10013d 0%, #c3151b 50%, #31599a 100%);
  background: linear-gradient(135deg, #10013d 0%, #12013f 4.5%, #1a0146 9.1%, #28004f 13.6%, #3d0059 18.2%, #59005d 22.7%, #790059 27.3%, #95004e 31.8%, #ab003f 36.4%, #b9022f 40.9%, #c11121 45.5%, #c3151b 50%, #c21424 54.5%, #c01138 59.1%, #ba1452 63.6%, #ae1f70 68.2%, #9a2d8d 72.7%, #813ba1 77.3%, #6647a9 81.8%, #4f50a6 86.4%, #3e56a0 90.9%, #34589c 95.5%, #31599a 100%);
  background: linear-gradient(135deg in oklch, oklch(18.07% 0.1045 282.33) 0%, oklch(52.08% 0.2028 27.12) 50%, oklch(46.86% 0.1150 259.64) 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.