Ocean Glass dives from near-black teal to a bright tropical blue. Deep, clean and a little mysterious, like looking down from the side of a boat.
Copy the CSS
.glass {
background: rgba(255, 255, 255, 0.12);
-webkit-backdrop-filter: blur(12px) saturate(140%);
backdrop-filter: blur(12px) saturate(140%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 24px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
color: #FFFFFF;
}
.backdrop {
background: linear-gradient(160deg, #0F2027, #2C5364, #00B4DB);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass { background: rgba(40, 40, 60, 0.88); }
}Where Ocean Glass looks great
- Finance and data products. Serious, but not dull.
- Dark-mode interfaces. Glass glows against the depths.
- Hero sections. Great contrast for white headlines.
- Calm privacy blur. Dark enough for a cinema.
Getting the glass right
On dark backdrops a low tint, around 12 percent, is plenty. The border does the heavy lifting, so keep it at 30 percent or more.
Watch out for
The dark end can swallow shadows. Raise shadow opacity or the panel will look stuck to the page. For the basics of the style, read what glassmorphism actually is.