Subnautical to Ravenclaw Gradient
CSS
background: linear-gradient(90deg, #012253 0%, #0a0555 100%);
From Subnautical (#012253) to Ravenclaw (#0A0555). The two hues are 28° 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 | |
|---|---|---|---|---|---|
| Subnautical | #012253 | 1, 34, 83 | 216°, 98%, 16% | 99, 59, 0, 67 | |
| 25% (near Subnautical) | #031B54 | 3, 27, 84 | 222°, 93%, 17% | 96, 68, 0, 67 | |
| 50% (near Interstellar Blue) | #061454 | 6, 20, 84 | 229°, 87%, 18% | 93, 76, 0, 67 | |
| 75% (near Ravenclaw) | #080C55 | 8, 12, 85 | 237°, 83%, 18% | 91, 86, 0, 67 | |
| Ravenclaw | #0A0555 | 10, 5, 85 | 244°, 89%, 18% | 88, 94, 0, 67 |
Halfway along, the gradient is #061454, closest to the named color Interstellar Blue. 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.16:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #012253, #0a0555) - Diagonal:
linear-gradient(135deg, #012253, #0a0555) - Radial, from the center out:
radial-gradient(circle, #012253, #0a0555) - Tailwind CSS:
bg-gradient-to-r from-[#012253] to-[#0a0555]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Subnautical to Ravenclaw gradient?
It starts at #012253 (Subnautical) and ends at #0A0555 (Ravenclaw), with #061454 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #012253, #0a0555) runs from Ravenclaw on the left to Subnautical on the right.