Huebook

Deep Blue to Galactic Federation Gradient

CSS

background: linear-gradient(90deg, #040273 0%, #330077 100%);

From Deep Blue (#040273) to Galactic Federation (#330077). The two hues are 25° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYK
Deep Blue#0402734, 2, 115241°, 97%, 23%97, 98, 0, 55
25% (near Insomniac Blue)#10027416, 2, 116247°, 97%, 23%86, 98, 0, 55
50% (near Child of the Night)#1C017528, 1, 117254°, 98%, 23%76, 99, 0, 54
75% (near Child of the Night)#27017639, 1, 118259°, 98%, 23%67, 99, 0, 54
Galactic Federation#33007751, 0, 119266°, 100%, 23%57, 100, 0, 53

Halfway along, the gradient is #1C0175, closest to the named color Child of the Night. 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.12: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 Deep Blue to Galactic Federation gradient?

It starts at #040273 (Deep Blue) and ends at #330077 (Galactic Federation), with #1C0175 in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #040273, #330077) runs from Galactic Federation on the left to Deep Blue on the right.