Narwhal Grey to Midnight Oil Gradient
CSS
background: linear-gradient(90deg, #080813 0%, #0b0c14 100%);
From Narwhal Grey (#080813) to Midnight Oil (#0B0C14). The two hues are 7° 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 | |
|---|---|---|---|---|---|
| Narwhal Grey | #080813 | 8, 8, 19 | 240°, 41%, 5% | 58, 58, 0, 93 | |
| 25% (near Narwhal Grey) | #090913 | 9, 9, 19 | 240°, 36%, 5% | 53, 53, 0, 93 | |
| 50% (near Midnight Oil) | #0A0A14 | 10, 10, 20 | 240°, 33%, 6% | 50, 50, 0, 92 | |
| 75% (near Midnight Oil) | #0A0B14 | 10, 11, 20 | 234°, 33%, 6% | 50, 45, 0, 92 | |
| Midnight Oil | #0B0C14 | 11, 12, 20 | 233°, 29%, 6% | 45, 40, 0, 92 |
Halfway along, the gradient is #0A0A14, closest to the named color Midnight Oil. 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.02:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #080813, #0b0c14) - Diagonal:
linear-gradient(135deg, #080813, #0b0c14) - Radial, from the center out:
radial-gradient(circle, #080813, #0b0c14) - Tailwind CSS:
bg-gradient-to-r from-[#080813] to-[#0b0c14]
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 Narwhal Grey to Midnight Oil gradient?
It starts at #080813 (Narwhal Grey) and ends at #0B0C14 (Midnight Oil), with #0A0A14 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #080813, #0b0c14) runs from Midnight Oil on the left to Narwhal Grey on the right.