Professional Technique to Turn a Gray Sky Blue In Photoshop

125K views 2,798 likes 126 comments

Jump to a step in the video (6)

Click a time to play the video from there.

  1. 0:00 Introduction
  2. 1:10 HSL Technique
  3. 3:06 Masking with Channels
  4. 9:30 Make a digital sky using a Gradient Fill
  5. 13:50 Make the building darker to reduce the atmospheric perspective.
  6. 17:50 Use the Camera Raw filter to enhance the image.
Show Shortcuts for
Text size
Appearance

Your choices stick across every tutorial on this device.

Turn a gray sky blue in Photoshop using a channel-based mask, the Dodge and Burn tools, and a Gradient Fill layer, all without an automated sky replacement.

Picture this. It’s the perfect weather for a walk around the city. You’re in a foreign country, and you take a photo of one of its most popular tourist sights with the sky as your background!

But upon viewing the image, you realize the sky is bland. That is exactly what happened on my recent trip to Milan, Italy.

In this tutorial, I’ll be showing you how you can improve your photo and turn a white/grey sky into a blue sky in Photoshop!

If you have the new Photoshop 2021 or newer then you can also try the new automated method to replacing skies in Photoshop!

Key Takeaways

  • A Gradient Fill layer lets you recolor an existing sky without importing a new sky photo.
  • The Channels panel often builds a cleaner mask than Select Subject when the edges are full of fine detail, like branches or a crane.
  • Applying a channel to itself with a Blending Mode like Screen or Linear Burn sharpens a mask before you use it.
  • A sky that goes too dark next to a bright building looks fake. Match the sky to the atmospheric perspective already in the photo.
  • Stack two layer masks: one for the building, and one that hides everything above it. Paint with white to reveal a darkening effect only where a structure needs it.
  • Holding Alt (Windows) or Option (macOS) while dragging the Masking slider in Camera Raw shows exactly which edges get sharpened.

What You Will Learn

  • How to build a sky mask from the Channels panel instead of Select Subject
  • How to whiten a sky and blacken a foreground with the Dodge and Burn tools
  • How to sharpen a channel mask with Apply Image and blending modes
  • How to recolor the sky with a Gradient Fill layer
  • How to keep the result believable with atmospheric perspective and Camera Raw

Requirements

Before you start

Keyboard Shortcuts

ActionWindowsmacOS
UndoCtrl ZCommand Z
Select the Zoom toolZZ
Increase or decrease brush size[ or ][ or ]
Add to a Lasso selectionShift dragShift drag
Subtract from a Lasso selectionAlt dragOption drag
Fill with the Background colorCtrl BackspaceCommand Delete
DeselectCtrl DCommand D
Toggle a dialog’s Preview checkboxPP
Load a channel as a selectionCtrl click the thumbnailCommand click the thumbnail
Duplicate a layer mask onto another layerAlt drag the maskOption drag the mask
Duplicate and invert a layer mask at onceAlt Shift drag the maskOption Shift drag the mask
Create a black (hide-all) layer maskAlt click the mask iconOption click the mask icon
Reveal exactly where Sharpening appliesAlt drag the Masking sliderOption drag the Masking slider

Discovering the HSL tab

Right-click on the layer and select Convert to Smart Object.

Doing this will help you preserve the image’s original characteristics despite all of the filters and adjustments that will be applied to the image. At the same time, allowing you to go back to its original content when needed.

Right clicking the photo layer and choosing Convert to Smart Object
Layers panel with the photo now a Smart Object so the original stays intact

Choose Filter > Camera Raw Filter.

Adjust the Tonality and the Color of the image.

On the HSL tab, you can adjust the Hue, Saturation, and Luminance of each color channel, giving you full control of the colors in your image.

HSL tab in Camera Raw with hue, saturation, and luminance sliders per color channel

With the Blue slider, adjust it to the left and right to bring out more of the blue and make the sky vibrant.

Tip: If that doesn’t seem to work and your sky is still grey, you can click Cancel at the bottom of the window to undo the change you applied. Instead, you can create a digital sky.

Creating a Digital Sky

The Select Subject tool works perfectly with inanimate objects or human subjects. However, for photos with intricate details, that may not be the best option. Photoshop’s AI-powered selection can make mistakes sometimes, and correcting it will only cost you time.

For a more straightforward solution, create a selection out of it using the Channels panel.

Channels panel opened to build the selection instead of using Select Subject

From there, you will see the Red, Green, and Blue channels that make up the RGB image. Click on each channel and see which channel has a stronger contrast between the foreground and the background.

In this example, the Blue channel shows exactly what you need. 

Blue channel showing the strongest contrast between the Duomo and the sky

Click-and-drag the Blue channel to the New Channel icon to duplicate it.

Dragging the Blue channel onto the New Channel icon to duplicate it

Whiten the Sky

Next, change the sky into white and transform the rest of the image into black. For this, you can use the Dodge and Burn tools to whiten and blacken the selected pixels. 

Dodge and Burn tools picked from the toolbar to whiten and blacken pixels
Second view of the Dodge and Burn tools ready to work on the duplicated channel

Use the Dodge tool to whiten the pixels that are part of the sky.

On the Options bar, select the Range to target Highlights.

For the Exposure, set it to 50%.

Options bar with Range set to Highlights and Exposure at 50 percent

Paint over the sky while avoiding the larger areas of the Duomo. It’s okay if your brush grazes over the towers.

If you happen to make a mistake, simply press CtrlZ (Windows) or CommandZ (macOS) to undo the recent step.

On the contrary, use the Burn tool to darken the foreground. 

On the Options bar, select your Range as Shadows and the Exposure set to 50%. Just as you did for the sky, paint over the Duomo with the Burn tool to make the pixels darker.

Burn tool set to Shadows painting over the Duomo to darken those pixels
Channel copy after burning the building down toward solid black

Next, select the Lasso tool and use it to freehand a selection around the Duomo. 

Lasso tool drawing a freehand selection around the Duomo

Set black (#000000) as your Background color, and press CtrlBackspace (Windows) or CommandDelete (macOS) to fill the selection with the background color.

After the selection is filled, you can pressCtrlD (Windows) or CommandD (macOS) to deselect.

Enhance the Shadows and Highlights

Next, use a powerful filter on Photoshop where it allows you to take this channel and apply it to itself using a Blending Mode to enhance the shadows or highlights.

Choose Image > Apply Image. 

On the Channel options, select the Blue Copy and set Screen as your Blending Mode, this makes the image brighter and the differences clearer.

Click OK to exit the window.

Apply Image dialog set to the Blue Copy channel with the Screen blending mode
Channel brightened after applying it to itself with Screen
Closer look at the sky separating cleanly from the building in the channel

Next, do the exact same step, but to make the image darker. Choose Image > Apply Image.

The Apply Image dialog open again to darken the channel copy

Set the Blending Mode to Linear Burn.

Apply Image blending mode switched over to Linear Burn

Click OK to exit the window.

Click here to learn more about Blending Modes!

To darken all of the details of the Duomo, keep on repeating this process. You can also use the Brush tool, select a smaller brush, and paint the small details with black color.

Make a Selection of the Bright Pixels

Hold the Ctrl (Windows) or Command (macOS) key and click on the Channel thumbnail to load the bright pixels as a selection.

Click on the RGB to select all channels, go back to the Layers panel and from there, create a Gradient Fill Layer. 

Ctrl clicking the channel thumbnail to load the bright sky pixels as a selection

Turn a Gray Sky Blue in Photoshop

To start selecting the perfect blue sky for your image, simply click on the Gradient Editor.

You can select among the options in the Presets and swap out the colors for your preferred shade of blue.

Gradient Editor open with the presets and a chosen shade of blue

Feel free to experiment on this part until you find the right color of the sky that fits your image perfectly.

Once you’re happy, click OK to exit the Color Picker and the Gradient Editor window.

Blue gradient filling the sky selection above the Duomo to turn a gray sky blue in Photoshop

On the Gradient Fill window, you can adjust the position of the gradient as well as increase the scale.

Then press OK to apply the changes and exit the window.

Fixing Small Details

If you zoom in on the left part of the image, you’ll see how you may be losing details of the crane because of the applied masks. 

To fix this, select Multiply as your Blending Mode to bring back the details.

Multiply blending mode bringing back the lost detail in the crane

Fixing Atmospheric Problems

Create a Curves Adjustment Layer and then right-click to reveal the menu, and select Delete Layer Mask.

Curves adjustment layer with Delete Layer Mask chosen from the right click menu

Hold Alt (Windows) or Option (macOS) while dragging the layer mask to duplicate it onto another layer. 

To invert the effect and apply on the Duomo instead, click on the Layer Mask > click on Invert. Now, when you adjust the curves, it only affects the building.

Another Technique:

To start over, click on the Reset icon at the bottom of the Properties window > right-click on the duplicated layer mask > select Delete Layer Mask.

Select the original layer mask, then hold AltShift (Windows) or OptionShift (macOS). Click and drag the layer mask onto another layer to duplicate and invert it at the same time.

Click on the Direct Selection tool so when you hover over the image, you’ll know where the pixels will appear on the curve. 

Drag down a point from the middle of the curve and create another point to bring it back up the highlights to avoid making the building very dark.

Curve pulled down in the middle with a second point holding the highlights up

On the Layers panel, create a group and name it “Atmosphere.” 

Drag the Curves adjustment layer into the group and collapse it.

Curves layer dragged into a new group named Atmosphere

Then, hold Alt (Windows) or Option (macOS) and click on the Layer Mask icon to create a black Layer Mask to hide everything in the group. 

Alt clicking the Layer Mask icon to add a black mask that hides the group

Select the Brush tool with white (#ffffff) set as the Foreground color. Then, Brush over parts of the building you want the effect to show.

Painting with a white brush so the effect shows on the parts of the building you want

In the image, selectively paint over the towers on the back of the Duomo to bring out the contrast.

By making this subtle adjustment, the separation between the Duomo and the new color of the sky looks more realistic.

One Last Tip!

Select the Gradient Fill 1 layer > hold Shift > Select the Layer 0 copy > right-click > Convert to Smart Object. This will combine the three layers into one editable Smart Object. 

Three layers combined into one editable Smart Object

Next, go to Filter > Camera Raw Filter and adjust the Tonal and Color adjustments.

With the available sliders, feel free to experiment on which adjustments can bring the best out of your image.

Camera Raw Filter sliders used for the tonal and color adjustments

On the Detail tab, you can increase the Sharpening to bring out more details but the effect can be so subtle that it’s hard to notice.

Sharpening raised on the Detail tab for a subtle lift in detail

To see where the Sharpening is applied, go to the Masking slider and hold Alt (Windows) or Option (macOS) while dragging the slider.

The further you adjust the slider to the right, the more it reveals the edges of the image. 

Holding Alt while dragging the Masking slider to see where sharpening falls
Masking preview revealing more edges as the slider moves to the right

At 90, the sky has completely turned black and it has revealed more details of the building. This also means the sharpness of the building will be applied on the edges of the building and none in the sky.

Masking at 90 turns the sky black and leaves only the building edges showing

On the HSL Adjustments, you can adjust the blue slider to make the sky more vibrant. Use the orange slider to contrast the color of the building against the sky.  

Blue slider lifted for a vibrant sky with orange adjusted for the building

On the fx tab, apply a small amount of Grain to get rid of the very smooth, computer-generated look of the image.

A small amount of Grain added on the fx tab to soften the digital look

And this is how you turn a white/grey sky into a blue Sky in Photoshop! With this technique, you’ll never have to worry about ruining a great photo of a perfect day!  

Frequently Asked Questions

How do you turn a gray sky blue in Photoshop without replacing it?

Build a selection from the sky in the Channels panel, then use Dodge and Burn to make the sky pure white and the foreground pure black. Load that channel as a selection and fill it with a blue Gradient Fill layer. The original sky pixels never leave the photo.

Why use the Channels panel instead of Select Subject for a sky mask?

Select Subject struggles with fine detail like a crane, tree branches, or building spires. The Channels panel lets you pick whichever red, green, or blue channel already has the strongest contrast between the sky and the foreground. That channel usually produces a cleaner starting mask.

Which channel should you duplicate to mask a sky?

Click through the Red, Green, and Blue channels and use whichever one shows the most contrast between the sky and the subject. In most outdoor photos that is the Blue channel, since skies carry a lot of blue light and most foregrounds do not.

What does Apply Image do to a channel mask?

Image > Apply Image lets a channel blend with itself using a Blending Mode. Screen brightens the sky side of the mask, and Multiply or Linear Burn darkens the foreground side. That sharpens the black-and-white split before you load it as a selection.

How do you keep a recolored sky from looking fake?

Compare the sky’s darkness to the atmospheric perspective already in the photo. A distant building can look naturally bright on its own. A sky that is too dark next to it will look fake, so match the two before you commit to a color.

Can you make part of a building darker without a new selection?

Yes. Put a Curves adjustment layer inside its own layer group, then give that group a black layer mask so it hides everything. Paint with white using the Brush tool to reveal the darkening only where you want it.

What does the Masking slider do in the Camera Raw Sharpening panel?

Holding Alt (Windows) or Option (macOS) while dragging the Masking slider shows a black-and-white preview. It reveals exactly which edges get sharpened, so you can keep the effect off of a smooth sky.

Conclusion

Turning a gray sky blue in Photoshop comes down to one core skill: a clean mask that isolates the sky from everything else. You can build that mask from the Channels panel, like this tutorial does, or from a simpler tool.

Once that mask is solid, Dodge and Burn, blending modes, and a Gradient Fill layer are just ways to paint in the color you want. The same mask also works for the highlight and shadow moves in Camera Raw that pull the two areas together.

Watch the full video above for every adjustment in real time, and comment on the video if you have a question about your own sky.

Pro Training

Selections and Masking Mastery

Complete course includes 2.5 hours of step-by-step lessons, 6 structured modules, downloadable practice files, and custom Photoshop brushes. Everything you need to master selections and masks in one place.

View the Course

Keep going

Next, try Photoshop’s automated Sky Replacement tool for a faster way to swap in an entirely new sky.

Final Image

Drag the slider to see before and after

After: Professional Technique to Turn a Gray Sky Blue In Photoshop
Before: Professional Technique to Turn a Gray Sky Blue In Photoshop
Jesús Ramirez

About the author

Jesús Ramirez

Jesús Ramirez is a graphic designer and the founder of the Photoshop Training Channel, which he started in 2012 and has grown past two million YouTube subscribers. He has taught at Adobe MAX, Adobe Summit, and Photoshop World, teaches courses for CreativeLive and Pluralsight, and was one of five artists chosen for Adobe Stock's Make a Masterpiece campaign. His Photoshop templates shipped inside Photoshop CC 2018.

More about Jesús Ramirez

Similar Posts