Palette maker

Blue Gradient: Colors, Hex Codes and CSS Backgrounds

The default blue gradient here runs from light blue through blue to dark blue . In CSS that is linear-gradient(135deg, #8EC5FC, #2F80ED, #0B3D91).

Type
135°
 

More blue gradients to try

On this page
  1. Hex codes
  2. Similar shades
  3. CSS code
  4. Radial and conic
  5. Fixing banding
  6. Contrast
  7. UI and brands
  8. Interiors and art
  9. Printing
  10. Palettes
  11. FAQ

It is a sky to deep water ramp: airy at one corner, dark enough at the other to carry white text. Below you will find every code format, copy-ready CSS, contrast ratios I calculated, and notes on using blue gradients in UI, print, interiors and fashion.

The Exact Colors Behind This Blue Gradient

Three stops do all the work. Light blue is the airy end, blue is the saturated middle that makes the ramp read as blue instead of grey, and dark blue gives it weight. Their hues sit close together on the HSL wheel (210°, 214° and 218°), which is why the blend stays clean.

Stop HEX RGB HSL CMYK
Light blue 142, 197, 252 210°, 95%, 77% 44, 22, 0, 1
Blue 47, 128, 237 214°, 84%, 56% 80, 46, 0, 7
Dark blue 11, 61, 145 218°, 86%, 31% 92, 58, 0, 43

The CMYK figures use the plain screen-to-ink formula. A real press profile will give different numbers, and saturated blues like usually print a little duller than they glow on a display.

Light Blue, Blue and Dark Blue Compared With Nearby Shades

is a soft cornflower sky, slightly more saturated than baby blue. is a clear, friendly mid blue, brighter and less purple than royal blue . is a deep cobalt-navy: dark, but still obviously blue, where classic navy leans more violet.

Nudge either end and the mood changes:

  • Toward cyan (try ): fresher and more tropical, good for water, wellness and travel.
  • Toward violet (try ): more digital, the feel of a product launch.
  • Toward black (try ): night sky and premium. Our dark blue gradient page goes deeper into navy territory.

Blue also pairs well with its opposite. A warm amber end gives a sunset-over-sea look, which you can explore in the yellow blue gradient guide. Pushing the far end toward red gives something hotter and more electric, covered in the red to blue gradient page.

Copy-Ready CSS for a Blue Linear Gradient

The studio above lets you move stops, change the angle and switch between linear, radial and conic, then copy the result. This is the same default, with a fallback for any browser that skips gradients:

.hero {
  background: #2F80ED; /* fallback */
  background: linear-gradient(135deg, #8EC5FC 0%, #2F80ED 55%, #0B3D91 100%);
}

Angle decides the story, so pick it on purpose:

  1. 180deg runs top to bottom and is the CSS default. It suits page headers and sky effects.
  2. 90deg runs left to right, which works for buttons, banners and progress bars.
  3. 135deg runs corner to corner and feels the most natural on cards and hero sections.

The percentages matter too. Moving the middle stop from 50% to 65% keeps the light end around longer, which gives a brighter, friendlier page. Moving it to 35% makes the dark end take over, which feels heavier and more serious.

Radial, Conic and Soft Glow Variations

A radial gradient turns the same three blues into a spotlight. Put the light stop off-center for a glow that looks like daylight hitting a surface:

background: radial-gradient(circle at 30% 20%, #8EC5FC, #2F80ED 50%, #0B3D91);

A conic gradient sweeps colors around a point, like a dial or a glossy badge. Ending on the same color you started with avoids a hard seam:

background: conic-gradient(from 200deg, #2F80ED, #8EC5FC, #0B3D91, #2F80ED);

For soft, misty effects, finish the ramp on an ice tone. #F5FCFF is a near-white with a cool cast that fades from without a visible edge, so it works well as the top of a page background.

Why Blue Gradients Go Muddy or Show Banding

A gradient goes muddy when its ends are far apart in hue. Blue to yellow or blue to orange passes through a dull grey in the middle under the default sRGB blending, because the color channels average out. Staying inside the blue family avoids this, which is the main reason the three stops here behave. If you need a distant partner, choose a mid stop by eye, or ask the browser to blend in a perceptual space:

A blue to orange gradient looks grey in the middle. What is the quickest fix?

The grey comes from the channels averaging out, so a hand-picked mid stop or a perceptual blend keeps the color alive.

background: linear-gradient(in oklab 135deg, #8EC5FC, #2F80ED, #0B3D91);

Current browsers understand the in syntax and older ones ignore the line, so keep a plain version above it.

The second problem is banding: visible stripes across a large, gentle blue ramp, most obvious on full-screen phone backgrounds. On a client landing page I fixed it by laying a barely visible noise texture over the gradient. The steps disappeared and nobody noticed the texture.

Separate stops by lightness

For a clean blue gradient, change lightness more than hue. Light blue to dark blue through a bright mid stop never goes grey.

White Text on Blue: Contrast Ratios You Can Trust

Contrast is where blue gradients fail most often, because the middle of the ramp is a mid tone that suits neither white nor black text. I calculated these with the WCAG relative luminance formula. White on comes to about 10:1, well above the 4.5:1 AA line for body text. White on is about 3.9:1, which passes only for large text (3:1). White on is about 1.8:1, so the light end needs dark text.

Which text works for body-size copy on the mid blue #2F80ED?

Body text needs 4.5:1 for AA, which near-black clears and white does not.

Near-black text on reaches about 11.5:1, and on gives about 5.5:1, so dark blue text on the light end is a safe, on-brand choice. Near-black on reaches about 5.4:1.

Text sits across a gradient, so test the worst pixel behind it, not the average. On one app onboarding screen I fixed failing white captions by sliding the middle stop darker rather than touching the copy. The design barely changed and every caption passed.

Try this: Place your headline on the gradient, then take a screenshot and sample the lightest pixel directly behind the letters. Run it through a contrast checker and darken the nearest stop until white text reaches 4.5:1.

Blue Gradients in UI, Branding and Dark Mode

Blue is the default trust color in banking, health and software, and a gradient adds depth without leaving the family. For hero sections and onboarding screens, a three-stop diagonal like this one works. For buttons, use two close stops ( into a slightly darker blue) so the surface looks lit rather than glossy. In charts, light to dark blue is a natural sequential scale, with the lightest shade meaning the lowest value.

In branding, a blue gradient can suggest movement and technology. Messenger’s chat bubble is a well-known example of blue pushed toward violet and pink. If you want that energy, end the ramp on instead of a darker blue. For a more formal look, pair the gradient with flat white and navy as described in navy blue and white color combinations.

For dark mode, lower the saturation a little, use the dark end for page backgrounds and keep light blue for accents and focus rings. Full-strength glowing on near-black can feel harsh at night.

Walls, Denim and Watercolor: Blue Gradients Beyond Screens

On a wall, a blue gradient is usually an ombre: three paint colors blended in feathered bands, light near the ceiling and deeper toward the floor (or the reverse for a cozy, grounded feel). Screens exaggerate brightness, so treat as a direction and test real paint samples in the room’s own light before committing.

In fashion, the same idea appears as dip-dye, ombre denim and printed silk. Blue fading into teal or mint reads as ocean, and the pastel green gradient page has partners for that. Blue fading into pink and purple reads as dusk, which the pink to purple gradient guide covers.

In painting and illustration, a real sky runs dark and saturated overhead and pale near the horizon. Wet-on-wet watercolor and airbrush do this naturally. Digitally, a 180deg gradient from at the top to at the bottom gets you most of the way there.

Printing a Blue Gradient Without Surprises

Screens mix light, printers mix ink, and some bright blues sit outside what CMYK can reproduce. I once approved a brochure cover on screen, and the proof came back flatter and slightly greyer than my monitor. The fix was to build the gradient directly in CMYK from the start and look at the numbers, not the glow.

Two panels compare three blue gradient stops on screen with hex and RGB values and in print with CMYK values
The same three blues use HEX and RGB on screen but CMYK in print, where bright blue looks duller.

Use the table earlier as a starting point, then ask your printer for a proof. Keep the blue stops built mostly from cyan and magenta, with black only in the darkest stop, which keeps the ramp smooth. Very long, gentle gradients can show steps on press just as they do on screen, so a slightly shorter ramp or a subtle texture helps.

Paper changes everything. Coated stock keeps blues vivid, while uncoated paper soaks up ink and mutes them, so expect to look softer than it does on a phone.

Ready-to-Use Blue Gradient Palettes

Each palette below is built from the same stops and their closest neighbors, so you can drop any of them into a gradient or use the colors flat. Sky Ladder is the pure version, Harbor Daylight adds a warm accent, Cool Glass leans cyan and violet, and Denim Studio is the muted, editorial option.

Sky Ladder

A pure blue ramp for hero backgrounds, charts and sequential data.

Harbor Daylight

Blue gradient with a warm gold accent for buttons and highlights.

Cool Glass

Frosted cards and app screens that lean toward cyan and violet.

Denim Studio

Muted blues with a coral spark for editorial layouts and fashion boards.

Whichever you pick, keep one stop clearly darker than the rest for text, one clearly lighter for breathing room, and treat any accent color as a small, deliberate dose.

The colors behind these gradients

Blue Gradient: questions people ask

What is the hex code for a blue gradient?

A blue gradient has no single hex code because it blends two or more colors. This page uses light blue #8EC5FC, blue #2F80ED and dark blue #0B3D91, which together give a clean sky to deep water ramp.

How do I make a blue gradient in CSS?

Use background: linear-gradient(135deg, #8EC5FC, #2F80ED, #0B3D91); on any element. Add a solid background color on the line above as a fallback.

What colors go well with a blue gradient?

White and ice tones keep it clean, and warm accents such as gold or coral make it pop because they sit opposite blue on the wheel. Neighbors like cyan and violet give a smoother, more digital look.

Is white text readable on a blue gradient?

It depends on the stop behind the text. White on #0B3D91 is about 10:1, but on #2F80ED it is about 3.9:1 and on #8EC5FC only about 1.8:1, so keep white text on the dark end.

How do I stop banding in a blue gradient?

Add a third stop so the steps are shorter, or lay a very faint noise texture over the gradient. Large, low-contrast blue ramps band the most, especially on phone screens in the dark end.

Keep exploring