Designing Scannable QR Codes: Contrast, Quiet Zones, and Color
A QR code can be styled and still scan reliably, if you respect a few rules. Here is how to brand a code without breaking it.
Contrast is non-negotiable
Scanners read QR codes by distinguishing dark modules from a light background. The safest, most reliable choice is dark modules on a light background, classic black on white.
You can use color, but the dark part must stay genuinely dark and the light part genuinely light. A mid-grey code on a beige background is asking for failed scans.
Mind the quiet zone
Every QR code needs an empty margin around it, traditionally at least four modules wide. This quiet zone tells the scanner where the code begins and ends. Crowding the code against text, a logo or a border is one of the most common, and most avoidable, causes of scan failure.
Using color safely
- •Keep the modules darker than the background, not the other way around.
- •Avoid inverting the code unless you have tested it thoroughly.
- •Skip gradients across the modules; they reduce contrast unpredictably.
- •Match brand color in the modules, but keep it deep enough to read.
Do not touch the finder patterns
The three large squares in the corners are how a scanner locates and orients the code. Recolor them if you must, but never cover them, distort them or merge them into a background. They are load-bearing.
Restraint reads better
The most reliable branded codes are the most restrained ones: a single brand color, strong contrast, a clear quiet zone, and at most a small central logo backed by high error correction. Elegance and scannability point in the same direction.