Guides / Print and packaging

High-contrast QR codes for packaging

A QR code on a box gets scanned under bad supermarket light, on a curved can, after a week in a delivery truck. Here is how to design one that still works.

4 min readPrint and packaging
On this page Why packaging is harder than screens Pick colors by contrast, not by brand guide alone Size and module size Dot style, logos and error correction Finishes and surfaces Retail barcodes are moving to QR Pre-press checklist Questions
In short
  • Dark dots on a light background, contrast 7:1 or more.
  • Error correction H and square dots.
  • A 4-module quiet zone and at least 2 cm wide.
  • Download SVG and test a printed proof on several phones.

Why packaging is harder than screens

On a screen, a QR code is lit evenly and perfectly flat. Packaging adds problems that eat into how readable the code is:

Each of these uses up some of the code's safety margin. High contrast is the margin you control most easily.

Pick colors by contrast, not by brand guide alone

Scanners convert the image to black and white before reading it, so what matters is the lightness difference between dots and background, not the hue. Two colors that look very different, like red and green, can have almost the same lightness and fail.

Dots / backgroundContrastOn packaging
Black on white21:1Best choice
Navy #0E1430 on white18:1Excellent
Dark green #1B4332 on white11:1Excellent
Brand red #D0263E on white5:1Risky, test carefully
Black on kraft brown #C8A97E~9:1 on screen, much lower printedUse a white box behind the code
Yellow on white~1.1:1Unreliable, avoid

Keep the dots darker than the background. Light dots on a dark background (an inverted code) look striking, but some older scanner apps and point-of-sale scanners can't read them.

Contrast ratio between dots and background. Scanners see lightness, not hue. Labels describe printed, real-world scanning; a clean screen is much more forgiving.

The generator shows a live contrast rating for every design and warns you about inverted codes.

Open the packaging preset: black square dots, error correction H, standard quiet zone.

Use packaging preset

Size and module size

The overall size matters less than the size of each module (one square dot). As a rule of thumb for packaging:

See How small can a QR code be? for a full size table.

Dot style, logos and error correction

Fancy dot shapes leave more empty space in each module. That is fine on a screen, but on packaging it combines with ink spread and glare. Square or softly rounded dots are the safest choice.

Every style here scans on a screen. In small print, the ones with less ink per dot lose first. Labels describe printed, real-world scanning; a clean screen is much more forgiving.

Error correction lets a QR code survive missing pieces. Level H recovers roughly 30% damage, and packaging needs that margin for scuffs. If you add a logo, it uses up part of the same margin, so keep it under about 20% of the code width on packaging.

Finishes and surfaces

Retail barcodes are moving to QR

The retail industry is moving from 1D barcodes to 2D codes at checkout, using a standard called GS1 Digital Link. If your code needs to work at the till as well as on phones, ask your packaging printer or your GS1 member organization for the exact size and placement rules. A marketing QR code made here is fine for consumer scanning but is not a replacement for a registered product barcode.

Pre-press checklist

  1. Dark dots on a light background, contrast 7:1 or higher.
  2. Error correction H.
  3. Quiet zone of at least 4 modules on every side, free of text and graphics.
  4. Exported as SVG and placed at 100% (not stretched).
  5. Not crossing a fold, seam or curve edge.
  6. Printed proof scanned with at least three phones, iPhone and Android, under store-like lighting.
  7. The link opens a page that loads fast on mobile data and will stay live for the product's whole shelf life.

Questions

What contrast does a QR code need on packaging?

Aim for a contrast ratio of at least 7:1 between the dots and the background, with dark dots on a light background. Below about 4.5:1 scan failures rise quickly, especially under store lighting.

Can I print a QR code on kraft or brown packaging?

Yes, but print a white knock-out box behind the code first. Kraft paper alone usually gives too little contrast with black ink.

Should a packaging QR code use a logo?

Only if you use error correction level H and keep the logo small. Packaging gets scuffed and creased, and that damage uses up the same error correction a logo does.