Twilight Purple

Customize and copy the CSS

Code

background: #312E81;
background: linear-gradient(135deg, #312E81 0%, #4F46E5 100%);

Color stops

Color stops
StopPositionHEXRGBHSLOKLCH
Stop 10%
Stop 2100%

Save image

Image size

About Twilight Purple

Starting from #312E81 and finishing on #4F46E5, Twilight Purple is a cool multi-color gradient. By default it flows top-left to bottom-right at 135°, and its midpoint blends to #403AB2.

Both colors are deep (36% and 51% lightness), with an average look that is vivid. The colors stay within a 2° slice of the color wheel, so the blend reads as one hue changing in lightness rather than a shift between colors.

It suits SaaS landing pages, dashboards and trustworthy brand headers. White text keeps at least 6.2:1 contrast across every stop, which passes WCAG AA for body text.

The two ends are close enough that sRGB and OKLCH interpolation look nearly the same. Change the angle or switch to a radial or conic shape to see how it behaves in other layouts.

Twilight Purple gradient: #312E81, #4F46E5

Blue color palettes

See all