Oceanic Noir to Sombre Night Gradient
CSS
background: linear-gradient(90deg, #172b36 0%, #161e34 100%);
From Oceanic Noir (#172B36) to Sombre Night (#161E34). The two hues are 23° 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 | |
|---|---|---|---|---|---|
| Oceanic Noir | #172B36 | 23, 43, 54 | 201°, 40%, 15% | 57, 20, 0, 79 | |
| 25% (near Oceanic Noir) | #172836 | 23, 40, 54 | 207°, 40%, 15% | 57, 26, 0, 79 | |
| 50% (near Dark) | #172535 | 23, 37, 53 | 212°, 39%, 15% | 57, 30, 0, 79 | |
| 75% (near Sombre Night) | #162135 | 22, 33, 53 | 219°, 41%, 15% | 58, 38, 0, 79 | |
| Sombre Night | #161E34 | 22, 30, 52 | 224°, 41%, 15% | 58, 42, 0, 80 |
Halfway along, the gradient is #172535, closest to the named color Dark. 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.13:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #172b36, #161e34) - Diagonal:
linear-gradient(135deg, #172b36, #161e34) - Radial, from the center out:
radial-gradient(circle, #172b36, #161e34) - Tailwind CSS:
bg-gradient-to-r from-[#172b36] to-[#161e34]
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 Oceanic Noir to Sombre Night gradient?
It starts at #172B36 (Oceanic Noir) and ends at #161E34 (Sombre Night), with #172535 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #172b36, #161e34) runs from Sombre Night on the left to Oceanic Noir on the right.