How-to Guide

Color QR Code: Which Colors Scan and Which Fail

You can change the color of a QR code to match your brand, as long as a camera can still tell the squares from the background. Here is the rule, the safe pairs and the mistakes that make a colored code stop scanning.

Key takeaways

  • Scanners read brightness, not hue. Squares must be clearly darker than the background.
  • Dark blue, green, red or purple on white all scan well.
  • Yellow, pastel and light grey squares fail because they sit too close to white.
  • Print a proof and scan it before the full run, since printed colors shift.

The contrast rule

A phone camera turns the picture into light and dark and then reads the pattern. It does not care whether a square is blue or green. It cares how much darker the square is than the background around it.

Keep the squares dark and the background light, with a strong gap in brightness between the two. If you can turn your design to greyscale and still see the squares clearly, the code will scan. If they fade into the background in greyscale, they will fade for the camera too.

Safe and risky colors

Square colorOn white backgroundWhy
Black or near blackSafeHighest contrast
Dark blue, navySafeDark enough, common brand color
Dark green, deep purpleSafeStrong gap in brightness
Deep red, maroonUsually safeTest it, bright reds can read lighter
Orange, teal, mid blueRiskyMid brightness, scan depends on the phone
Yellow, pastel, light greyFailsToo close to white

The background does not have to be pure white. A light cream or pale grey works if the squares stay much darker. Colored backgrounds that are mid brightness are where most failures start.

Inverted and gradient codes

An inverted code has light squares on a dark background. Newer phones often read it, but many older cameras and handheld scanners do not. For anything printed and handed out, use dark squares on a light background.

A gradient can look good, but every part of it must stay dark enough. A code that fades from navy to light blue often scans at the dark end and fails at the light end. Check the lightest point of the gradient, not the average.

Colored corner squares are fine when they are also dark. The large squares in three corners help the camera find and orient the code, so keep them strongest. A logo in the middle adds another risk, covered in adding a logo to a QR code.

Screen to print

Screens mix light (RGB) and printers mix ink (CMYK), so a vivid screen color usually prints duller and sometimes lighter. A navy that looks strong on screen can print close to a mid blue on uncoated paper. Dark colors have more room to lose a little and still scan, which is another reason to start dark.

Paper and finish matter too. Glossy stock can reflect light into the camera, and rough stock can blur the edges of small squares. The print durability guide covers stocks and finishes.

Test before you print

  1. Make a greyscale copy of the design. The squares should still stand out clearly.
  2. Scan the on-screen code with two or three different phones.
  3. Print one proof on the real stock at the real size.
  4. Scan the proof in daylight and under a desk lamp, from the distance people will use.
  5. Only then print the full run.

If a proof fails, darken the squares first, then check the border and size. QR code not scanning lists the other causes.

Make one

The free QR code generator has a code color picker and gives you PNG and SVG files with no signup. If the link may change after printing, create an editable code with color options, or read about business card codes for a common use.

Questions people ask

Can a QR code be any color?

Almost. A scanner reads the difference in brightness between the dark squares and the light background, not the hue. Any color works if the squares are clearly darker than the background.

What are the safest colors for a QR code?

Black, dark blue, dark green, deep red or dark purple squares on a white or very light background. These pairs have strong contrast and scan on almost every phone.

Why does a yellow or light QR code not scan?

Yellow, light grey, pastel and light orange are close in brightness to a white background, so the camera cannot tell squares from background. Pick a darker shade.

Can I use a white code on a dark background?

An inverted code scans on many new phones but fails on older cameras and many warehouse scanners, so it is a risk for print. Use dark squares on a light background when the code must always work.

Do gradients work in a QR code?

Yes, if every part of the gradient stays dark enough against the background. A gradient that fades to a light shade at one end often fails at that end.

Will the color look the same when printed?

Not always. Screens use RGB and printers use CMYK, so a bright screen color often prints duller. Print a proof and scan it before the full run.

Brand colors that keep scanning

Permanent QR Codes makes editable QR codes for $49 once, with color options, unlimited scans and no renewal. Try one free for 3 days.

Last updated: