Skip to content
Musterli

Dark

Observatory gradient

A deep night blue that lightens from the top.

Customize in the editor

Change angle, shape and colors, then export as CSS, SVG or PNG.

Colors

The color stops of the gradient. Click a value to copy it.

  1. Color 1

    Text in white, contrast 11.0:1

  2. Color 2

    Text in white, contrast 19.1:1

Code

Paste the lines into your element's rule. The first line is a fallback color, the second the gradient for every browser, the third interpolates in OKLCH for modern browsers.

CSS

background-color: #2b3a67;
background-image: radial-gradient(ellipse at 50% 0%, #2b3a67 0%, #2a3865 11.11%, #28345e 22.22%, #242e54 33.33%, #1f2648 44.44%, #191e3c 55.56%, #141730 66.67%, #101228 77.78%, #0d0e22 88.89%, #0c0d20 100%);
background-image: radial-gradient(ellipse at 50% 0% in oklch, #2b3a67 0%, #2a3865 11.11%, #28345e 22.22%, #242e54 33.33%, #1f2648 44.44%, #191e3c 55.56%, #141730 66.67%, #101228 77.78%, #0d0e22 88.89%, #0c0d20 100%);

Tailwind

bg-[#2b3a67] bg-[radial-gradient(ellipse_at_50%_0%,_#2b3a67_0%,_#2a3865_11.11%,_#28345e_22.22%,_#242e54_33.33%,_#1f2648_44.44%,_#191e3c_55.56%,_#141730_66.67%,_#101228_77.78%,_#0d0e22_88.89%,_#0c0d20_100%)]

Take the gradient further

The same colors in other generators. Each card opens the editor with these colors.

Keep working with the colors

Turn the color stops into a palette or a full color scale.

How to use this gradient

Copy the CSS into the rule of the element that should carry the gradient, for example a section, a card or a button. For text on top, pick a text color with enough contrast on every color stop; the values next to the colors help you with that. In the editor you change angle, shape and easing and can also export the gradient as an image.

All gradients
  • Fir Forest

    Dark fir green fading almost to black, calm and refined.

  • Deep Sea

    From petrol blue into darkness, ideal behind light text.

  • Volcano

    Glowing orange at the bottom edge, fading upwards into charred darkness.

  • Espresso

    Warm coffee brown to near black, subtle and dark.

  • Sea of Fog

    Pale, almost neutral gray with a touch of blue, like fog over the lowlands.