Designing QR codes: colours, logos and gradients that still scan
How far you can push QR code design — inverted colours, rounded modules, centre logos and gradients — and the contrast and size limits that keep a stylised code readable.
A brand-coloured QR code with a logo in the middle looks better than a black square — right up to the moment it stops scanning. The good news is that the tolerances are well defined, so you can design something distinctive and still be confident it works on a five-year-old phone in bad light.
Contrast is the hard limit
Scanners binarise the image: every pixel becomes black or white before decoding. If the contrast between your "dark" and "light" modules is too low, that step loses information the error correction cannot recover.
- Minimum: a contrast ratio of 3:1 between module and background.
- Comfortable: 7:1 or higher.
- Black on white: 21:1 — the reference point.
The ratio is about luminance, not hue. Navy on cream scores well, maroon on sand is usually fine, and orange on yellow fails no matter how different they look to you. QRify shows a live contrast warning while you pick colours, and refuses to render combinations below the threshold.
Never set the code on a photograph, a pattern or a gradient background without a solid plate behind it.
Inverted codes: works on phones, fails on hardware
Light modules on a dark background look striking, and modern phone cameras handle them. Dedicated 2D scanners, older POS hardware and some industrial readers do not: they expect dark-on-light and will simply report "no code".
If the code might be scanned by anything other than a phone, keep it dark on light.
Logos: budget them with error correction
Error correction is not free storage — it is redundancy. Level H can rebuild about 30 % of the code, but only if the damaged area is spread out and the decoder still finds the finder patterns.
Practical rules for a centre logo:
- Keep the logo under 20 % of the code width, ideally 12–15 %.
- Use level Q for a small logo and level H for anything larger.
- Never cover the three finder squares, the timing patterns or the alignment pattern near the bottom-right.
- Leave the logo on a white plate so its own edges are clean.
- Test-scan a physical print, not the screen.
A logo that covers 10 % of the area at level M will often work — and then fail on one phone out of five. Level Q costs a slightly denser code and removes that failure.
Rounded modules and "designer" codes
Rounding the corners of each module removes a fraction of the dark area, which is harmless: the decoder samples the centre of each module. Two caveats:
- Do not round so aggressively that modules touch and blur into each other.
- Keep the finder patterns intact; they are what the camera uses to locate the code.
Gradients across the code are safe as long as both ends of the gradient stay above the contrast threshold against the background.
What about the "dots and circles" style?
Dot-shaped modules work because the decode step samples module centres. They also reduce the printed area, so they tolerate slightly less ink spread — which means a slightly larger print size. If you choose dots, go up one step in the size table.
Sizing a decorated code
Decorative treatment always costs readability, so compensate with size:
| Treatment | Extra size needed |
|---|---|
| Plain black on white | 0 % (baseline) |
| Coloured modules, high contrast | 0 % |
| Rounded modules | +10 % |
| Dot modules | +15 % |
| Centre logo at level Q | +15 % |
| Centre logo at level H | +25 % |
| Printed on a dark or textured surface | +30 % or a white plate |
Combine treatments and the percentages add up. A dot-style code with a logo on kraft paper needs to be roughly 40 % wider than a plain black square to scan from the same distance.
A workflow that keeps both design and function
- Draft the layout in black on white at the intended size.
- Scan it once. If it fails now, it will fail worse with styling.
- Apply colour, then check the contrast ratio.
- Add the logo, raise error correction to Q or H.
- Print a proof and scan it with two phones.
- Only then send it to production.