QR code colors and contrast: customize without losing scans

⏱ 2 min

A QR code in your brand colors catches the eye more than a plain black-and-white square. Color itself is not the problem. Poor contrast is. Here is how to choose colors so the code stays readable on every phone.

How phones “see” color

A QR scanner does not really care about color. It splits the image into dark and light areas, then rebuilds the grid of modules.

What counts is the difference in lightness between the modules and the background. Navy on off-white works well. Yellow on white, or red on a green of similar brightness, works poorly, even if the colors look very different to the human eye.

The basic rule: dark code, light background

The standard was designed around dark modules on a light background. That is the setup the widest range of scanners reads best.

Pick a dark module color, close to black in lightness: midnight blue, forest green, burgundy, brown or charcoal. Keep the background white or very pale. That way you can follow your brand guidelines without taking risks.

Inverted codes

An inverted code shows light modules on a dark background, such as a white code on black. It can look sleek on some designs.

The catch: some scanners, especially older apps and certain professional readers, read inverted codes poorly or not at all. Recent phones often cope, but not all of them.

If you want a dark background, place a dark code inside a light panel on that background instead. You keep the look and the most reliable setup.

Combinations to avoid

Some pairings cause trouble again and again.

  • Pastel module colors such as yellow, pale pink, sky blue or light gray.
  • Two bright colors of similar lightness, such as red and green.
  • A photo or textured image behind the code.
  • Gradients that fade into a light tone across part of the code.
  • A transparent background placed on a dark or busy surface.

Markers, shapes and frames

The three large squares in the corners are the finder patterns. They help the phone locate and orient the code. You can change their color or shape, as long as they stay in strong contrast with the background.

Rounded or dotted module shapes still scan on most phones, provided contrast is good. The further a shape strays from a square, the more worthwhile it is to test.

A frame with a line such as “Scan me” tells people what to do. Leave the standard clear margin between the frame and the code.

Checking contrast in practice

A quick test: convert the code image to grayscale. If the modules and background stay clearly distinct, contrast is probably enough. If everything turns mid-gray, change your colors.

Then run the real test: print the code on the final material and scan it with several phones in bright and dim light. Printed colors often look duller than they do on screen, so a pairing that seems fine on a monitor can lose contrast on paper.

FAQ

Does a QR code have to be black and white?

No. Any dark color on a light background generally works well. Lightness contrast is what matters, not the hue.

Will a white QR code on black scan?

Sometimes. Some scanners struggle with inverted codes. For a general audience, stick to a dark code on a light background.

Can I use a transparent background?

Yes, if the final surface is light and plain. On a dark background or a photo, add a light panel behind the code.

Customize your QR code colors and check the live preview as you go.

Create my QR code →