Resolve FX Stylize · DaVinci Resolve 21

Defocus Background

A mask-driven shallow-depth-of-field effect for keeping the foreground sharp while defocusing, desaturating and optionally tinting the background with Gaussian or lens-style blur.

External matteGaussian / LensBackground gradeShallow DOF

Mask-driven depth workflow

The effect starts with a key, not with Blur

Defocus Background becomes convincing only when the foreground matte is convincing. Resolve expects an existing key and then gives you dedicated controls to soften that key, shape the defocus and style the background independently.

Foreground key required

Mask-first workflow

Defocus Background does not identify the foreground subject by itself. It expects an existing foreground mask or key, for example from Magic Mask, a Power Window, or the alpha/key output of an upstream node. White areas remain sharp while black areas become the defocused region. In practice, the quality of the effect depends not only on the Blur amount but also on how cleanly the matte handles hair, shoulders, held objects and other difficult edges.

  • Mask Preview shows the matte directly: white = sharp, black = blurred.
  • Mask Invert swaps the foreground/background roles, which is useful for diagnostics and unusual keys.
  • If the matte is poor, increasing Blur only makes halos and errors more obvious.
Blur · Contrast · Pivot

Adjust Mask

Mask Blur softens the transition between the sharp foreground and the defocused region. Mask Contrast strengthens or relaxes the separation inside the matte, while Adjust Pivot sets the point around which that contrast is redistributed. This is especially useful for translucent hair and soft edges, where a small depth transition is more convincing than a hard cut. Too much Mask Blur creates a halo, while excessive Contrast quickly makes the subject look cut out.

  • Start with minimal Mask Blur and increase it only until the edge stops revealing the matte.
  • Contrast and Pivot are often more useful on difficult mattes than simply blurring the whole edge.
  • Check hair, motion blur and thin objects at 100% viewing scale.
Blur · Saturation · Colorize

Effects

Blur is the main depth-of-field control and sets the strength of the background defocus. Saturation changes only the blurred region, which can make the background quieter and less competitive with the subject. Colorize mixes the selected Color into the defocused area: at low values it acts as a gentle tint, while stronger values become an obvious creative grade. In a practical portrait workflow, it is usually better to set Blur first, then trim Saturation, and only add Colorize if the shot actually benefits from it.

  • More Blur does not automatically look more cinematic; the depth should still match the lens feel and shot scale.
  • A small saturation reduction often makes synthetic defocus feel more believable.
  • Colorize works best as subtle background separation rather than as a replacement for a full background grade.
Gaussian / Lens · Anamorphism · Highlights

Advanced Options

Blur Type switches between Gaussian and Lens. Gaussian produces a more neutral, uniform blur, while Lens is designed to mimic optical defocus and is usually the better choice for a shallow-depth-of-field look. In Lens mode, Anamorphism stretches the bokeh/blur character along one axis and can move the result toward anamorphic optics, while Highlights increases the contribution of bright areas so point lights behave more like optical bokeh. These Advanced controls largely determine whether the result reads as a generic blur or as an attempt to emulate real lens behavior.

  • Gaussian is useful for a clean graphic blur, while Lens is better for a more cinematic defocus.
  • Keep Anamorphism moderate unless the source already has a clear anamorphic context.
  • Highlights becomes most obvious on night lights, reflections and specular points.

Blur · Saturation · Colorize

Effects

Blur is the main depth-of-field control and sets the strength of the background defocus. Saturation changes only the blurred region, which can make the background quieter and less competitive with the subject. Colorize mixes the selected Color into the defocused area: at low values it acts as a gentle tint, while stronger values become an obvious creative grade. In a practical portrait workflow, it is usually better to set Blur first, then trim Saturation, and only add Colorize if the shot actually benefits from it.

More Blur does not automatically look more cinematic; the depth should still match the lens feel and shot scale.
A small saturation reduction often makes synthetic defocus feel more believable.
Colorize works best as subtle background separation rather than as a replacement for a full background grade.

Blur · Contrast · Pivot

Adjust Mask

Mask Blur softens the transition between the sharp foreground and the defocused region. Mask Contrast strengthens or relaxes the separation inside the matte, while Adjust Pivot sets the point around which that contrast is redistributed. This is especially useful for translucent hair and soft edges, where a small depth transition is more convincing than a hard cut. Too much Mask Blur creates a halo, while excessive Contrast quickly makes the subject look cut out.

Start with minimal Mask Blur and increase it only until the edge stops revealing the matte.
Contrast and Pivot are often more useful on difficult mattes than simply blurring the whole edge.
Check hair, motion blur and thin objects at 100% viewing scale.

Blur · Saturation · Colorize

Effects

Blur is the main depth-of-field control and sets the strength of the background defocus. Saturation changes only the blurred region, which can make the background quieter and less competitive with the subject. Colorize mixes the selected Color into the defocused area: at low values it acts as a gentle tint, while stronger values become an obvious creative grade. In a practical portrait workflow, it is usually better to set Blur first, then trim Saturation, and only add Colorize if the shot actually benefits from it.

More Blur does not automatically look more cinematic; the depth should still match the lens feel and shot scale.
A small saturation reduction often makes synthetic defocus feel more believable.
Colorize works best as subtle background separation rather than as a replacement for a full background grade.

Gaussian / Lens · Anamorphism · Highlights

Advanced Options

Blur Type switches between Gaussian and Lens. Gaussian produces a more neutral, uniform blur, while Lens is designed to mimic optical defocus and is usually the better choice for a shallow-depth-of-field look. In Lens mode, Anamorphism stretches the bokeh/blur character along one axis and can move the result toward anamorphic optics, while Highlights increases the contribution of bright areas so point lights behave more like optical bokeh. These Advanced controls largely determine whether the result reads as a generic blur or as an attempt to emulate real lens behavior.

Gaussian is useful for a clean graphic blur, while Lens is better for a more cinematic defocus.
Keep Anamorphism moderate unless the source already has a clear anamorphic context.
Highlights becomes most obvious on night lights, reflections and specular points.

Blur · Saturation · Colorize

Effects

Blur is the main depth-of-field control and sets the strength of the background defocus. Saturation changes only the blurred region, which can make the background quieter and less competitive with the subject. Colorize mixes the selected Color into the defocused area: at low values it acts as a gentle tint, while stronger values become an obvious creative grade. In a practical portrait workflow, it is usually better to set Blur first, then trim Saturation, and only add Colorize if the shot actually benefits from it.

More Blur does not automatically look more cinematic; the depth should still match the lens feel and shot scale.
A small saturation reduction often makes synthetic defocus feel more believable.
Colorize works best as subtle background separation rather than as a replacement for a full background grade.

Blur · Saturation · Colorize

Effects

Blur is the main depth-of-field control and sets the strength of the background defocus. Saturation changes only the blurred region, which can make the background quieter and less competitive with the subject. Colorize mixes the selected Color into the defocused area: at low values it acts as a gentle tint, while stronger values become an obvious creative grade. In a practical portrait workflow, it is usually better to set Blur first, then trim Saturation, and only add Colorize if the shot actually benefits from it.

More Blur does not automatically look more cinematic; the depth should still match the lens feel and shot scale.
A small saturation reduction often makes synthetic defocus feel more believable.
Colorize works best as subtle background separation rather than as a replacement for a full background grade.

Practical workflow

A reliable five-step Defocus Background setup

1. Build the key

Use Magic Mask, a Power Window or another keying tool to isolate the subject before tuning defocus.

2. Refine the matte

Use Mask Preview, Blur, Contrast and Pivot until hair and transition edges look stable.

3. Set blur character

Pick Gaussian for neutral softness or Lens when you want a more optical shallow-DOF response.

4. Style the background

Use Saturation, Colorize, Anamorphism and Highlights only after the basic defocus already feels believable.

5. Finish with Blend

Use Global Blend only as the final dry/wet trim after the key and blur model are already correct.

FAQ

Practical Defocus Background questions

Does Defocus Background require Magic Mask?

Not specifically Magic Mask, but an existing key or matte is required. It can come from Magic Mask, a Power Window, a qualifier or another node feeding the key into Defocus Background.

Which is better, Gaussian or Lens?

Gaussian is more neutral and straightforward. Lens is aimed more at an optical shallow-depth-of-field look and works with the Anamorphism and Highlights behavior.

Why does a halo appear around the subject?

The problem is usually the matte: too much Mask Blur, incorrect Contrast/Pivot, or poor segmentation around hair and motion blur. Fix the mask before merely reducing the effect Blur.

Can the blurred background be color-tinted?

Yes. Saturation plus Colorize/Color let you style the defocused region independently without grading the sharp foreground the same way.

Resolve FX Stylize

Defocus Background adds depth-of-field styling to the group

Previous FX

Blanking Fill

Return to aspect-ratio fill, warp and background styling.

Next FX

Drop Shadow

Continue in Stylize with direct shadow generation for titles, graphics and cut-out objects.

Best companion

Magic Mask or a carefully tracked Power Window is usually the fastest way to build the foreground key this effect needs.

Lens Blur

Use Lens mode when the goal is to imitate optical bokeh rather than a purely graphic background blur.