Black Stallion to Midnight Edition Gradient
CSS
background: linear-gradient(90deg, #0e191c 0%, #0c121b 100%);
From Black Stallion (#0E191C) to Midnight Edition (#0C121B). 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 | |
|---|---|---|---|---|---|
| Black Stallion | #0E191C | 14, 25, 28 | 193°, 33%, 8% | 50, 11, 0, 89 | |
| 25% (near Black Stallion) | #0E171C | 14, 23, 28 | 201°, 33%, 8% | 50, 18, 0, 89 | |
| 50% (near Black Stallion) | #0D161C | 13, 22, 28 | 204°, 37%, 8% | 54, 21, 0, 89 | |
| 75% (near Midnight Edition) | #0D141B | 13, 20, 27 | 210°, 35%, 8% | 52, 26, 0, 89 | |
| Midnight Edition | #0C121B | 12, 18, 27 | 216°, 38%, 8% | 56, 33, 0, 89 |
Halfway along, the gradient is #0D161C, closest to the named color Black Stallion. 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.05:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #0e191c, #0c121b) - Diagonal:
linear-gradient(135deg, #0e191c, #0c121b) - Radial, from the center out:
radial-gradient(circle, #0e191c, #0c121b) - Tailwind CSS:
bg-gradient-to-r from-[#0e191c] to-[#0c121b]
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 Black Stallion to Midnight Edition gradient?
It starts at #0E191C (Black Stallion) and ends at #0C121B (Midnight Edition), with #0D161C in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #0e191c, #0c121b) runs from Midnight Edition on the left to Black Stallion on the right.