Yes, QR codes can be colored, but the colour is not the variable that matters. The scanner cares about the difference in luminance between the dark modules and the light background. A deep navy on white scans; a mid-grey on pale blue often does not, even though the two look equally colourful on a screen. This guide explains the contrast requirement, gives safe colour pairs, and shows how to check a brand palette before printing.
What the Standard Actually Requires
ISO/IEC 18004 defines the QR symbol. For print quality it specifies a minimum print contrast signal of about 0.6, which is roughly a 40% difference in luminance between the light and dark modules. In practice, designers use a luminance contrast ratio of at least 4:1 between foreground and background, and 7:1 or more for small codes or long viewing distances.
Luminance is not the same as hue. Two colours can look very different and still have almost the same luminance, which is why a red code on a green background can disappear to a camera. The ratio compares how much light each colour reflects, not how different they look to an eye.
The relationship also matters: dark modules must be darker than the background. An inverted code with light modules on a dark field can work on some phones and fails on others, because the finder patterns are designed to be detected as dark squares on a light field.
Safe Pairs and Risky Pairs
| Foreground | Background | Rough contrast | Verdict |
|---|---|---|---|
| Black #000000 | White #FFFFFF | About 21:1 | Best case |
| Deep navy #0B1F3A | White #FFFFFF | Well above 4:1 | Safe |
| Forest green #0F6E56 | Ivory #FEFFEF | Above 4:1 | Safe |
| Slate grey #6B7280 | White #FFFFFF | Around 4.8:1 | Borderline; test |
| Mid grey #9CA3AF | Pale grey #F3F4F6 | Well below 4:1 | Will fail |
| White #FFFFFF | Black #000000 | Inverted | Avoid |
Treat the table as a starting point. The final check is a scanner, not a hex calculator, because print stock, varnish and screen brightness all change the effective contrast.
Avoid gradients, colour blends and textured fills behind the code. A gradient means part of the code has good contrast and another part does not, so the finder pattern may decode while the data region fails.
The Quiet Zone Is Part of the Colour Design
The four-module quiet zone around the code must have the same reflectance as the light modules. A pale brand tint in the margin is not a quiet zone; it is a decorative border that reduces the contrast at the edge where the scanner finds the code.
If the code sits on a coloured poster, give it a light rectangular patch with at least four modules of padding on every side. Make the patch part of the artwork, not something the print operator adds at the last minute.
This matters most when the code is printed on a dark or saturated surface. A white patch on a black package looks different from the brand, but it is the difference between a code that scans and a code that does not.
Logos, Dot Styles and Error Correction
A logo in the centre of the code consumes error correction capacity. Use level H (30%), keep the logo under about 20% of the code width, and give it a light border so its pixels do not merge with the data modules.
Rounded dots and stylised eyes are also a trade. They remove module area, which reduces the signal the scanner sees. Keep the shape close to a square, preserve at least most of each module, and test the styled version against the plain one before committing to a print run. The custom styling guide covers the safe limits.
Colour and error correction interact. If a brand colour is borderline on contrast, raising the error correction level will not rescue it; fix the colour first, then spend the remaining redundancy on styling.
Test on the Final Surface
- Generate the code in the final colours at final size.
- Print it on the actual stock, with the actual varnish or laminate.
- Scan with an iPhone camera, an Android camera and one budget phone.
- Scan in daylight and under warm shop lighting.
- Scan from the real distance and at a slight angle.
A code that passes on a glossy screen can fail on matte board, and the reverse. The only test that counts is the one on the finished material. The colour QR generator lets you export a proof quickly.
