QR Code Colours: A Safe Design Guide
A QR code does not have to be black and white, but its modules must remain easy for a camera to distinguish from the background. A brand palette can make a code feel at home in your artwork; poor contrast can make it frustrating to scan. Here is a practical way to choose colours, test the result and adjust it in QRCodeBarn.
Keep the modules darker than the background
Most QR readers expect a dark pattern against a lighter, even field. Black on white is forgiving because the difference is obvious. You can use a brand colour for the modules, provided it is sufficiently dark, and a pale tint or white for the background. Think in terms of brightness rather than whether two colours look different on a colour chart: dark navy against pale cream is generally easier for a camera to separate than medium blue against medium grey.
Preserve the quiet zone, the clear margin of at least four modules around the code. It is part of the pattern's visual boundary and should share the background colour. Avoid placing a photo, texture, border or nearby text into this margin. A colourful frame can sit beyond it, but leave a clean buffer so the scanner can tell where the code begins.
Use contrast as a practical test
There is no universal colour pair that works on every screen, paper, printer and phone camera. Start with high contrast and assess the actual exported design. If the modules begin to merge into the background when viewed in greyscale, at a distance or under dim light, the pairing is too subtle. Keep the background flat and light; transparent backgrounds may reveal a dark or busy design underneath when the code is placed in a layout.
Red and green combinations can be particularly unreliable when both shades have similar low brightness, and colour-vision differences can also make them hard to distinguish. Do not rely on hue difference alone. A dark red on a pale background may scan well; two muted shades with similar luminance may not. If you want a coloured background, make it light enough that every module remains sharply defined. For print, remember that ink and paper can shift the appearance from what you see on a monitor.
Inverted codes need extra caution
An inverted design places light modules on a dark background. Some scanner apps can read inverted codes, but camera behaviour and app support vary. Many built-in readers are optimised for dark-on-light, so a reversed design is less dependable across different phones. If a dark background is essential to your artwork, create an inverted version only after confirming that the target audience's devices can scan it, and keep a conventional version available as a fallback.
Test with more than one phone model and scanning app if the sign will be used publicly. Try the same lighting, distance and print finish expected in use. Do not assume success because a desktop preview or one recent phone reads it. When reliability matters more than a dramatic effect, choose dark modules on a light background. Our QR code testing guide offers a repeatable test sequence.
Be cautious with gradients and decoration
A gradient changes the module colour across the code. It may look attractive, but one end can become too light or blend into the background. If experimenting, keep every point of the gradient dark enough, avoid colours with comparable brightness to the background and check the full code at its smallest intended size. A simple solid colour is easier to reproduce consistently on screens and printers.
Keep illustrations, shadows and patterns out of the modules. Do not round or replace so many module corners that the square grid becomes ambiguous. A logo placed in the centre can cover data; a larger error-correction setting may help recover some damage, but it is not a licence to obscure the code. See how error correction affects QR codes before adding a logo, and keep a plain version for comparison.
Change colours in QRCodeBarn
QRCodeBarn's generator lets you choose code colours for a static QR. Enter the destination or other content, set the foreground to a dark brand shade and choose a light background. If the selected options make a poor combination, return to a darker foreground or use black and white. Generate a fresh design after changing the settings; the visual colour is part of the exported artwork even though the encoded destination is unchanged.
- Start with a simple URL or payload and generate the code in the tool.
- Choose one dark foreground colour and a light, plain background.
- Check that the quiet zone remains clear and that no logo covers important modules.
- Download PNG for typical screen or raster workflows, or SVG when scaling for print.
- Place it in the final artwork and test a proof at the actual display or print size.
QRCodeBarn provides free static codes and PNG/SVG downloads; it does not offer dynamic destination editing or scan analytics. If the content changes later, a static code must be regenerated and the printed material replaced. For campaign reporting, you can add appropriate UTM parameters to the destination URL and view visits in your own GA4 setup; that measures site visits, not scans in the QRCodeBarn tool. Learn more about UTM links for QR codes.
Test the finished colour, not just the preview
A small preview on a bright monitor is an incomplete test. Check the exported file at the size people will encounter it, then scan it from a typical phone under typical lighting. For printed use, print it on the intended stock and inspect both the code and its quiet zone. For a window, test it from the side customers approach; reflections and daylight behind glass can lower contrast. If scanning is slow, enlarge the code or increase contrast before adding more decoration.
- If the camera cannot lock on, simplify the background and use darker modules.
- If only some phones scan it, switch from inverted or gradient styling to solid dark-on-light colours.
- If a print looks washed out, confirm the printer has not substituted or lightened the chosen ink.
- If the code is small, reduce decorative elements and retest at its final size.
Frequently asked questions
Can I use my brand colour for a QR code?
Yes, if the foreground remains clearly darker than a plain, light background. Check the exported code at its final size and test it on the intended phones and print material.
Do inverted QR codes always scan?
No. Some readers support light modules on a dark background, but support varies. Dark-on-light is the safer choice when you need broad compatibility.
Are gradients safe for QR codes?
A gradient can work only if strong contrast is maintained throughout the pattern. Solid colours are easier to reproduce and test, so use them when reliability is important.
Can I see scan counts in QRCodeBarn?
No. QRCodeBarn creates static codes and does not provide scan analytics. You can use UTM parameters and your own GA4 property to measure visits to a website destination.