Midnight Steel Gradient — CSS, Hex Stops and Preview
Midnight Steel is a linear-gradient built from 2 fixed stops, from #0F2027 to #2C5364. The values below are the preset exactly as the generator ships it, so you can paste the block and get this look without opening the tool.
Copy the CSS
.gradient {
background: #0F2027; /* fallback for old browsers */
background: -webkit-linear-gradient(200deg, #0F2027 0%, #2C5364 100%);
background: -moz-linear-gradient(200deg, #0F2027 0%, #2C5364 100%);
background: linear-gradient(200deg, #0F2027 0%, #2C5364 100%);
}Stops
| # | Colour | Position | RGB |
|---|---|---|---|
| 1 | #0F2027 | 0% | rgb(15, 32, 39) |
| 2 | #2C5364 | 100% | rgb(44, 83, 100) |
Frequently asked
What is the CSS for the Midnight Steel gradient?background: linear-gradient(200deg, #0F2027 0%, #2C5364 100%); It is a linear-gradient with 2 colour stops, and a solid fallback of #0F2027 for anything that cannot paint gradients.
Where does the Midnight Steel preset come from?
It ships with the CSS Shift generator as one of ten starting points. The values are fixed, not random: a 200° axis, with stops at 0%, 100%.
How do I put text on top of it?
Treat the lightest and darkest stop as the worst case. Against white, #0F2027 scores 16.72:1; #2C5364 scores 8.31:1 — so a white heading only clears 4.5:1 where those numbers are at least 4.5.