Duotone Image Generator

Recolor a photo with two colors: shadows take one and highlights the other. Start from a preset pair or use your own brand colors.

The Duotone Effect: How Two-Color Images Work and How Brands Use Them

Duotone images, photos recolored with just two colors, are striking, graphic and instantly recognisable. Spotify’s campaigns around 2015 and 2016 made the look famous in digital design, but the technique is much older. It is also one of the most practical ways to make photos from many different sources look like they belong to the same brand.

City skyline photo converted into duotone images using two pairs of brand colors

Where duotone comes from

In printing, a duotone is an image printed with two inks, typically black plus one spot color. Printers used it to add depth and richness to black-and-white photos: a second ink extends the tonal range, so shadows look deeper and midtones smoother than with black alone. Many classic photography books were printed as duotones for exactly this reason. Tritones and quadtones use three and four inks.

The digital duotone effect borrows the name but works a little differently: it maps the brightness of every pixel onto a gradient between two chosen colors.

How the digital effect works

  1. Calculate the brightness (luminance) of each pixel, a value from 0 (black) to 1 (white). Good conversions weight green highest and blue lowest, matching human perception: roughly 0.2126 R + 0.7152 G + 0.0722 B.
  2. Map that brightness onto a gradient from a shadow color to a highlight color. A pixel with brightness 0.3 becomes the color 30% of the way from the shadow color to the highlight color.
  3. Optionally adjust contrast first, to push more pixels toward the two extremes for a bolder result.

This is called a gradient map, and it’s exactly what Photoshop’s Gradient Map adjustment does with a two-color gradient. The duotone generator above does the same in your browser, with presets and contrast and brightness controls.

Choosing color pairs

The key is contrast in lightness between the two colors, not just a difference in hue.

Pair typeExampleResult
Dark + light, different huesNavy + gold, indigo + coralBold and graphic; the classic duotone look
Dark + light, same hue familyForest green + mintCalm, monochrome feel
Black + one colorBlack + yellowHigh impact, poster-like
Two mid-tonesMedium red + medium blueFlat and muddy; avoid

If both colors have similar lightness, the image loses its shapes, because everything maps to similar-looking colors. Check the lightness difference by comparing the two colors in a contrast checker; a ratio of 4:1 or more between them usually gives a clear image.

Photos that work well

  • Strong lighting with clear highlights and shadows.
  • Simple backgrounds, so the subject reads clearly in two colors.
  • Portraits and silhouettes, where shapes are distinctive.
  • Architecture and objects with bold geometry.

Photos that are flat, low-contrast or very busy tend to turn into indistinct blobs. Increasing contrast helps, as does cropping tightly around the subject. For basic tonal adjustments before applying the effect, see our guide to brightness, contrast and saturation.

Why brands love duotone

Consistency from inconsistent sources. Stock photos, user-submitted images and event photography rarely share the same lighting or color grading. Applying the same duotone to all of them creates a unified visual series.

Built-in brand colors. Using your brand’s dark and light colors puts your identity into every photo, even when the logo isn’t visible.

Text over images. A duotone with a dark shadow color creates a predictable, darker image that white headlines can sit on safely. With full-color photos, contrast varies wildly.

Distinctiveness. Two-color imagery stands out in feeds full of full-color photography.

Duotone versus other stylistic treatments

TreatmentColorsBest for
DuotoneTwo, mapped by brightnessBrand consistency, posters, text overlays
Monochrome tintOne hue at different lightnessSubtle, elegant consistency
Black and whiteNoneTimeless, documentary feel
Color overlay (multiply blend)Original colors + a tintSofter brand flavour, keeps some original color
Full-color photoNaturalProduct accuracy, food, fashion

Don’t use duotone where accurate color matters, such as product photos of clothing or cosmetics, food photography or real estate. Customers need to see the real colors.

Doing duotone in CSS

On websites you can approximate duotone without editing images, for example by combining filter: grayscale(1) with blend modes over a colored background, or using an SVG feColorMatrix / feComponentTransfer filter, which can apply a true gradient map. These are useful for hover effects and themes, but exported images are more predictable across browsers and work in email and social media.

Alt text and contrast on duotone images

Duotone changes how images look but not what they mean, so alt text should still describe the content, not the effect. If text sits on a duotone image, check contrast against the lightest color in the area behind the text.

A quick workflow for a campaign

  1. Pick the pair once. Choose a dark shadow color and a light highlight color from your brand palette, and write them down as part of the campaign style.
  2. Select suitable photos. Favour strong lighting and simple backgrounds; reject flat, busy images early rather than fighting them later.
  3. Crop before recoloring, so the subject fills the frame and the two-color shapes read clearly at small sizes.
  4. Apply the same contrast setting to every image. Small per-image tweaks are fine, but large differences break the series.
  5. Test with your actual headline and logo on top, in the sizes you will publish.
  6. Export at the target size for each channel, using JPEG for photos and PNG if crisp text is baked into the image.

Keeping these decisions fixed is what turns a filter into a recognisable visual system: people start to identify your posts before they read the name.