Ocean Blue Gradient — CSS, Hex Stops and Preview
Ocean Blue is a linear-gradient built from 2 fixed stops, from #2E3192 to #1BFFFF. 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: #2E3192; /* fallback for old browsers */
background: -webkit-linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
background: -moz-linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
}Stops
| # | Colour | Position | RGB |
|---|---|---|---|
| 1 | #2E3192 | 0% | rgb(46, 49, 146) |
| 2 | #1BFFFF | 100% | rgb(27, 255, 255) |
Frequently asked
What is the CSS for the Ocean Blue gradient?background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%); It is a linear-gradient with 2 colour stops, and a solid fallback of #2E3192 for anything that cannot paint gradients.
Where does the Ocean Blue preset come from?
It ships with the CSS Shift generator as one of ten starting points. The values are fixed, not random: a 135° 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, #2E3192 scores 10.66:1; #1BFFFF scores 1.25:1 — so a white heading only clears 4.5:1 where those numbers are at least 4.5.