Maniac Mansion to Interstellar Blue Gradient
CSS
background: linear-gradient(90deg, #004058 0%, #001155 100%);
From Maniac Mansion (#004058) to Interstellar Blue (#001155). The two hues are 32° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Maniac Mansion | #004058 | 0, 64, 88 | 196°, 100%, 17% | 100, 27, 0, 65 | |
| 25% (near Marine) | #003457 | 0, 52, 87 | 204°, 100%, 17% | 100, 40, 0, 66 | |
| 50% (near Subnautical) | #002957 | 0, 41, 87 | 212°, 100%, 17% | 100, 53, 0, 66 | |
| 75% (near Subnautical) | #001D56 | 0, 29, 86 | 220°, 100%, 17% | 100, 66, 0, 66 | |
| Interstellar Blue | #001155 | 0, 17, 85 | 228°, 100%, 17% | 100, 80, 0, 67 |
Halfway along, the gradient is #002957, closest to the named color Subnautical. 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.55:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #004058, #001155) - Diagonal:
linear-gradient(135deg, #004058, #001155) - Radial, from the center out:
radial-gradient(circle, #004058, #001155) - Tailwind CSS:
bg-gradient-to-r from-[#004058] to-[#001155]
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 Maniac Mansion to Interstellar Blue gradient?
It starts at #004058 (Maniac Mansion) and ends at #001155 (Interstellar Blue), with #002957 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #004058, #001155) runs from Interstellar Blue on the left to Maniac Mansion on the right.