How It Works 2026-02-26 5 min By Cornelious Fazal
Create a Custom Colour QR Code Free · No signup · Permanent

QR Code Color Guide: How to Design a Branded QR Code

Quick Answer

Design a branded QR code that still scans - the contrast rule, safe color combinations, logo size limits, gradient pitfalls, and a 7-point pre-print checklist.

A branded QR code - one that uses your company's QR code color, includes your logo, and matches your print design - scans just as reliably as a plain black-and-white code, provided you follow one constraint: contrast. Everything else in QR code design is flexible. Contrast is not.

This guide covers which colors work for a colored QR code, how to add a logo correctly, what gradients and patterned backgrounds do to scan reliability, and a seven-point checklist to run before distributing any custom QR code design.

The One Rule That Cannot Be Broken: Contrast

A smartphone camera distinguishes QR code modules - the small squares - from the background by detecting the difference in light and dark between them. If the difference is insufficient, the camera cannot decode the pattern and the scan fails.

The practical minimum contrast ratio for reliable QR code scanning is approximately 3:1 (foreground to background luminance). Designing below this threshold creates scan failures in low lighting, on budget Android devices, and on glossy printed surfaces.

  • Dark code on light background - safe in all conditions
  • Light code on dark background (inverted) - safe in most conditions; always test on Android first
  • Same-tone code and background - always fails
  • Low-contrast combinations (pale blue on white, yellow on cream) - fail in poor lighting

One additional constraint: avoid using red and green as the only distinguishing colors between the code and its background. Approximately 8% of the population has red-green color vision deficiency. Use dark navy, dark teal, dark purple, or black as reliable alternatives.

Which QR Code Colors Work - and Which Fail

The pattern across all tested combinations: use your brand's darkest color as the foreground on a white or light background. The exact hue matters far less than the luminance contrast between foreground and background.

Foreground colorBackground colorResult
BlackWhite✓ Always works
Dark navy (#001F5B)White✓ Always works
Dark teal (#00565A)White✓ Always works
Dark purple (#3D0066)White✓ Always works
WhiteBlack or dark navy✓ Works - test on Android first
Light grey (#CCCCCC)White✗ Fails in low light
Yellow (#FFD700)White✗ Fails consistently
Red (#FF0000)White⚠ Passes contrast but unreliable for CVD users
OrangeYellow✗ Fails consistently
Dark blueDark charcoal✗ Insufficient contrast despite both being dark

How to Change QR Code Colors Without Breaking the Code

A QR code has two color components: the foreground (the dark modules and squares) and the background (the space between modules, including the quiet zone). Both can be customized - with one rule: foreground must have significantly different luminance from background.

  1. Set your foreground to your brand's darkest primary or secondary color.
  2. Set your background to white or a very light neutral - off-white, light cream, or pale warm grey all work reliably.
  3. For an inverted code (light on dark), set foreground to white and background to your darkest brand color. Test on Android, as some older camera apps struggle with white-on-dark codes.

Avoid making the foreground and background close in tone - a dark navy foreground on a dark charcoal background will fail. Also avoid transparent backgrounds: a transparent QR code placed over a patterned surface destroys both the quiet zone and the contrast simultaneously.

Adding a Logo to a QR Code

QR codes support embedded logos because the QR standard includes built-in error correction - redundant data that allows the code to be read even when part of it is covered. The logo replaces some of that redundant data, so its size matters.

Logo size limit: the logo should cover no more than 25-30% of the total QR code area when using High (H) error correction. Larger logos exceed the error correction capacity and cause scan failures even when the code looks visually intact.

Practical effects of H-level error correction with a logo:

  • The code is denser (more modules) than the same code at L or M error correction
  • The code needs to be printed 15-20% larger than standard minimums to remain reliably scannable - see the QR code size guide
  • Testing before print is mandatory - one extra millimeter of logo scaling can push the code past its error correction limit

Logo tips for QR code embedding: save the logo as SVG or high-resolution PNG with transparent background; keep the design simple (fine lines and small text will not survive the size reduction); use square or circular shapes (irregular shapes appear noisy at small scale).

Gradient Fills and Patterned Backgrounds

Gradients and patterned backgrounds are the most common design mistakes in branded QR codes.

Foreground gradients: A linear gradient from dark blue to medium blue - where both tones remain substantially darker than the white background - can work. A radial gradient from dark at the edges to light at the center will fail: the center of the QR code contains the critical finder patterns and alignment markers, and fading contrast there makes those elements unreadable.

Rule for gradients: both the darkest and lightest gradient points must each maintain at least a 3:1 contrast ratio against the background independently. If the lightest gradient tone would fail on its own, the gradient will cause scan failures.

Patterned or photographic backgrounds: placing a photograph or texture behind a QR code almost always fails - the camera cannot separate code modules from background noise. If the code must appear over a photograph (on a poster), place it on a solid white or solid dark rectangular block, then layer that block over the photograph. The code sits cleanly on the block; the photo provides visual context around it.

Testing a Colored or Branded QR Code Before Distributing

The camera tests contrast - not your eye. A code that looks high-contrast on a monitor may fail in print. Test every designed QR code before distributing it.

  1. Print test at actual size - print the code at the exact final size and scan with both an iPhone and an Android device. Both must scan first attempt.
  2. Low light test - take the printed test into a dim environment (conference room, restaurant) and scan again. Colored codes that barely pass in bright light consistently fail in dim conditions.
  3. Distance test - scan from the actual viewing distance your audience will use, not arm's length. If it requires getting closer than expected, the contrast or size needs adjustment.

If any test fails: darken the foreground, lighten the background, reduce the logo, or increase the print size. See the QR code size guide for format-specific minimums.

Design Checklist Before You Print

Before approving any colored or branded QR code for distribution, confirm all seven items:

  • Foreground is substantially darker (or lighter for inverted) than the background - at least 3:1 contrast
  • No red-green-only contrast - darkest tone is navy, teal, purple, or black for CVD accessibility
  • Logo covers no more than 30% of the total code area
  • Error correction set to High (H) when a logo is embedded
  • File downloaded as SVG for any professional print use
  • Code printed and scanned at actual final print size - not the screen preview
  • Tested on both iOS and Android in indoor (not just bright) lighting

Ready to build your branded QR code? Go to the free QR code generator, set your foreground to your brand's darkest color, upload your logo, and download as SVG. Run the checklist above before the final print approval.

Frequently Asked Questions

You can use almost any color combination, provided the foreground and background have sufficient contrast - a minimum luminance ratio of approximately 3:1. In practice this means using a dark version of your brand color as the foreground on a white or light background, or a light foreground on a very dark background. Very light foreground colors on white backgrounds (pale blue, yellow, light grey) will fail to scan in typical indoor lighting.

Yes, if the contrast between the foreground modules and the background is sufficient. A dark navy or dark teal QR code on a white background scans exactly as reliably as a black-on-white code under the same conditions. Scan reliability depends entirely on contrast, not on whether the color is black. Always test a colored code at actual print size in indoor lighting before distributing.

White is the safest and most universally reliable QR code background. Off-white, light cream, and pale warm grey also work well. Avoid any background color that is close in brightness to the foreground - even if the two colors are different hues. A dark navy foreground on a dark grey background will fail to scan despite both being dark colors.

Yes. QR codes include error correction that allows part of the code to be obscured and still decoded. Set error correction to High (H) before generating the code, and keep the logo to a maximum of 25 to 30% of the total code area. Larger logos exceed the error correction capacity and cause scan failures. Also increase the physical print size by 15 to 20% compared to the minimum for an unlogged code, since H-level error correction creates a denser code that needs more space to scan reliably.

Monitors are backlit and show colors at maximum brightness. Printed surfaces reflect ambient light and appear significantly dimmer, especially on glossy or coated stock. Colors that appear high-contrast on screen often have insufficient contrast when printed. Always test by printing the code at actual size and scanning the printed output in indoor lighting - never by scanning the screen or evaluating the file on a monitor.