Ocean CSS Gradient — Copy the Code

Deep sea blue rising to bright aqua, blended in OKLCH so the middle stays vivid instead of graying out. Copy the Ocean gradient as CSS, a custom property, or a Tailwind theme block, and check its text contrast.

Ocean CSS

background: linear-gradient(135deg in oklch, rgba(15, 32, 39, 1) 0%, rgba(44, 83, 100, 1) 55%, rgba(54, 209, 220, 1) 100%);

Color stops

  • #0F2027 at 0% (100% opacity)
  • #2C5364 at 55% (100% opacity)
  • #36D1DC at 100% (100% opacity)

Edit this gradient · Browse all gradients · Check text over gradients