A QR code can use brand colors if a phone can still distinguish the dark squares from the light spaces under real scanning conditions. Start with a black-on-white control, change one design choice at a time, and test the finished piece before you print or distribute it. A color contrast calculation is a useful early screen, but it does not tell you whether a particular phone will decode a glossy, small, or poorly lit print.
Choose a dark foreground and a light background
Try a dark navy or burgundy on a plain, light background. Keep one consistent fill across the QR pattern, including the three large corner markers. Avoid gradients that make one part of the code much lighter, and avoid backgrounds that show through the light squares. Two colors can look very different in hue while providing little light-to-dark separation. Preview the design in grayscale to spot obvious problems before testing with a camera.

Keep the quiet zone intact
The blank border lets the scanner distinguish the code from the surrounding layout. Keep it free of text, frames and illustrations. DENSO WAVE's QR sizing guidance specifies a margin four modules wide on each side. A module is one small square. If the artwork file already includes that margin, preserve it when moving the code into a layout. See the quiet-zone guide for examples of what can encroach on the border.
Test the colors on the final material
Screen contrast and printed contrast can differ. Ink can spread, paper can tint the light areas, and a gloss finish can reflect a lamp across the code. Print at the final size on the intended stock. If you can choose the finish, make a matte proof before committing to glossy lamination. For a screen display, test under the actual display brightness and room lighting.

Worked example for a café menu
Print a black-on-white control and a dark green version at the same size with the same margin. Put both on the same table. Scan each from seated height under daylight and again with the overhead lights on. If both fail only under the lamp, try moving the menu or using matte stock. If the black control works in the same position but green fails, darken the green or switch back to the control. Confirm the destination opens before approving the print run.
Use a controlled scan test to find the cause
- Scan the exported file on screen to confirm it contains the intended destination.
- Scan one finished proof with two phones if available, at the distance visitors will use.
- Change one factor at a time: lighting, angle, size, then color. Compare each result against the black-on-white control.
- Recheck the final layout after adding a logo, border or coat of laminate. A working standalone code can fail after one of these changes.
Troubleshoot inverted, faint or inconsistent scans
If a white code on a dark background works on one phone and fails on another, return to dark modules on a light background. If the phone sees the code only when you move close, check QR print size and rescale the original without clipping the margin. If the camera recognizes the code but opens the wrong page, check the encoded destination separately from the colors.
Choose the variant that passes in the real location, then save the approved artwork and print settings with the source file. Use the QR code generator to make a clean control for your next print test.

