Best filament colours for a QR code that scans

Pick the colours by contrast, not by taste. We measured the brightness contrast of common PLA colours: some combinations that look striking on the bed are invisible to a phone camera.

Updated 17 October 2026 · 5 min read

The rule: dark code on a light base

QR readers expect dark squares on a light background. Almost every phone also reads the reverse (a light code on a dark base), but not every app or older phone does, so a printed part that has to work for everybody should stick to dark on light.

What matters is the difference in brightness, not in hue. Red and green look completely different to us, but they have a similar brightness, and to a camera they are almost the same grey.

Contrast between common filament colours

We calculated the contrast ratio (the same measure used for text on web pages: 1 means no difference, 21 is pure black on pure white) for the colours in the generator, which match typical PLA shades. As a guide: 7 or more: excellent 4.5 to 7: good 3 to 4.5: risky under 3: will not scan reliably

BaseCodeContrastVerdict
WhiteBlack15.0Excellent
WhiteNavy blue12.6Excellent
YellowBlack10.2Excellent
Wood beigeBlack9.4Excellent
YellowNavy blue8.5Excellent
PinkBlack7.4Excellent
WhiteBlue6.3Good
WhiteRed5.0Good
WhiteGreen4.5Good
GreyBlack5.1Good
YellowRed3.4Risky
WhiteGrey2.9Avoid
WhiteOrange2.8Avoid
WhitePink2.0Avoid
WhiteYellow1.5Avoid

The generator does this calculation for you: when you pick the two filament colours it shows the contrast and warns you in red below 3, and in amber if the code is lighter than the base.

Brand colours

If your brand colour is light (orange, yellow, light green), use it for the base and print the code in black or navy: yellow and black is one of the best combinations there is. If your brand colour is dark (navy, bottle green, burgundy), use it for the code on a white or beige base.

Finishes that cause trouble

Outdoors and in the sun

Sunlight fades many PLA colours and softens PLA in a car or a sunny window. For a plaque outside a door, print in PETG or ASA, with a white base and a black code. Black barely fades, so the contrast holds for years.

Frequently asked questions

What is the best colour combination for a 3D printed QR code?

Black on white, followed by navy on white and black on yellow. All three have very high contrast and work in any light.

Can I print a white code on a black base?

Many phones read inverted codes, but not all apps or older phones do. For a part anyone has to scan, use a dark code on a light base.

Why doesn't my red-on-green QR code scan?

Red and green have almost the same brightness. The camera reads the code in greys, and to it both colours are the same grey.

Is silk PLA a good idea?

For one of the two parts at most. Silk reflects light and, from some angles, the glare hides the code. A matte base is the safe choice.

Which filament should I use for an outdoor plaque?

PETG or ASA, in white and black. PLA softens in the sun and many PLA colours fade.

More guides

Size, colours and how to print in two colours with a single-nozzle printer.

🎨

Two colours with one nozzle

The exact layer for the filament change and how to set it in PrusaSlicer, Bambu Studio, OrcaSlicer and Cura.

📏

The right size

A calculator with the minimum size for your link, plus nozzle, layers and scanning distance.