Huebook

Dark Knight to Midnight Monarch Gradient

CSS

background: linear-gradient(90deg, #151931 0%, #1c0f33 100%);

Edit this gradient in the generator → Change the angle, add colors or switch to radial.

From Dark Knight (#151931) to Midnight Monarch (#1C0F33). The two hues are 30° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYKOKLCH
Dark Knight#15193121, 25, 49231°, 40%, 14%57, 49, 0, 8122.3% 0.047 275
25% (near Dark Knight)#17173223, 23, 50240°, 37%, 14%54, 54, 0, 8022.1% 0.052 281
50% (near Midnight Monarch)#19143225, 20, 50250°, 43%, 14%50, 60, 0, 8021.6% 0.057 288
75% (near Midnight Monarch)#1A123326, 18, 51255°, 48%, 14%49, 65, 0, 8021.3% 0.063 291
Midnight Monarch#1C0F3328, 15, 51262°, 55%, 13%45, 71, 0, 8020.9% 0.068 297

Halfway along, the gradient is #191432, closest to the named color Midnight Monarch. The stops are mixed in RGB, the way browsers draw a linear gradient by default.

Text on this gradient

White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.04:1, so the change is gentle.

Other ways to use it

Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.

Questions

What are the HEX codes of the Dark Knight to Midnight Monarch gradient?

It starts at #151931 (Dark Knight) and ends at #1C0F33 (Midnight Monarch), with #191432 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #151931, #1c0f33) runs from Midnight Monarch on the left to Dark Knight on the right.