Ruined Smores to Midnight Oil Gradient
CSS
background: linear-gradient(90deg, #0f1012 0%, #0b0c14 100%);
From Ruined Smores (#0F1012) to Midnight Oil (#0B0C14). The two hues are 13° 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 | |
|---|---|---|---|---|---|
| Ruined Smores | #0F1012 | 15, 16, 18 | 220°, 9%, 6% | 17, 11, 0, 93 | |
| 25% (near Ruined Smores) | #0E0F13 | 14, 15, 19 | 228°, 15%, 6% | 26, 21, 0, 93 | |
| 50% (near Midnight Oil) | #0D0E13 | 13, 14, 19 | 230°, 19%, 6% | 32, 26, 0, 93 | |
| 75% (near Midnight Oil) | #0C0D14 | 12, 13, 20 | 233°, 25%, 6% | 40, 35, 0, 92 | |
| Midnight Oil | #0B0C14 | 11, 12, 20 | 233°, 29%, 6% | 45, 40, 0, 92 |
Halfway along, the gradient is #0D0E13, 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, #0f1012, #0b0c14) - Diagonal:
linear-gradient(135deg, #0f1012, #0b0c14) - Radial, from the center out:
radial-gradient(circle, #0f1012, #0b0c14) - Tailwind CSS:
bg-gradient-to-r from-[#0f1012] 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 Ruined Smores to Midnight Oil gradient?
It starts at #0F1012 (Ruined Smores) and ends at #0B0C14 (Midnight Oil), with #0D0E13 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #0f1012, #0b0c14) runs from Midnight Oil on the left to Ruined Smores on the right.