---
title: "Color QR Code: Which Colors Scan and Which Fail"
description: "How to make a color QR code that still scans: the contrast rule, safe color pairs, what breaks with gradients and inverted codes, and how to test before printing."
url: "https://permanentqrcodes.com/blog/color-qr-code/"
updated: "2026-11-20"
---

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.

- The contrast rule
- Safe and risky colors
- Inverted and gradient codes
- Screen to print
- Test before you print
- Make one

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 color | On white background | Why |
|---|---|---|
| Black or near black | Safe | Highest contrast |
| Dark blue, navy | Safe | Dark enough, common brand color |
| Dark green, deep purple | Safe | Strong gap in brightness |
| Deep red, maroon | Usually safe | Test it, bright reds can read lighter |
| Orange, teal, mid blue | Risky | Mid brightness, scan depends on the phone |
| Yellow, pastel, light grey | Fails | Too 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](https://permanentqrcodes.com/blog/qr-code-with-logo/).

Want your brand color without a failed scan?

Pick a color, check the preview and download a code that works. Editable codes let you change the link later. $49 once per 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](https://permanentqrcodes.com/blog/qr-code-print-durability/) covers stocks and finishes.

## Test before you print

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

If a proof fails, darken the squares first, then check the border and size. [QR code not scanning](https://permanentqrcodes.com/blog/qr-code-not-scanning/) lists the other causes.

## Make one

The [free QR code generator](https://permanentqrcodes.com/qr-code-that-never-expires/) 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](https://permanentqrcodes.com/create-a-permanent-qr-code/) with color options, or read about [business card codes](https://permanentqrcodes.com/blog/qr-code-on-business-cards/) for a common use.

## Questions people ask

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.

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.

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.

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.

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.

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.

## Keep reading

- [Round and custom shape QR codes Dots, circle frames and what still scans.](https://permanentqrcodes.com/blog/round-qr-code/)
- [QR code image Save a code as PNG, JPG or SVG.](https://permanentqrcodes.com/blog/qr-code-image/)
- [Add a logo to a QR code What still scans with a logo in the middle.](https://permanentqrcodes.com/blog/qr-code-with-logo/)
- [QR code not scanning Causes and fixes when a printed code fails.](https://permanentqrcodes.com/blog/qr-code-not-scanning/)
- [QR code size guide Size and border for any print.](https://permanentqrcodes.com/blog/qr-code-size-guide/)
- [QR codes on business cards Size, placement and what to link.](https://permanentqrcodes.com/blog/qr-code-on-business-cards/)

## 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.
