QR Generator

June 1, 2026

How to Customize QR Code Colors: Brand Guidelines for QR Design

QR ColorsBrand GuidelinesColor ContrastCustom Design

A QR code in your brand colors looks more professional and gets scanned more often than a generic black-and-white code. But color customization requires care — wrong colors can make your QR code unscannable.

This guide covers everything about QR code color customization.

The Contrast Requirement

Why Contrast Matters

QR scanners convert the image to grayscale and differentiate modules based on brightness, not color. If the "dark" modules and "light" modules are too similar in brightness, the scanner cannot distinguish them.

Minimum Contrast Ratio

Contrast RatioScan Reliability
>7:1Excellent (no issues)
5:1 to 7:1Very good
3:1 to 5:1Acceptable (test required)
<3:1Poor (likely fails)

Rule of thumb: If you can't easily read the QR code text from arm's length, the contrast is too low.

Measuring Contrast

Use this formula:

Contrast ratio = (L1 + 0.05) / (L2 + 0.05)

Where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color.

Online tools: Use a contrast checker (WebAIM, Contrast Ratio) to test your color combination.

Color Combinations That Work

Safe Combinations

Dark ModuleLight BackgroundContrastRating
Black (#000000)White (#FFFFFF)21:1Excellent
Dark blue (#000080)White (#FFFFFF)15:1Excellent
Dark green (#006400)White (#FFFFFF)13:1Excellent
Dark red (#8B0000)White (#FFFFFF)9:1Excellent
Dark gray (#333333)White (#FFFFFF)9:1Excellent
Navy (#1a237e)Light gray (#f5f5f5)12:1Excellent
Dark green (#1b5e20)Cream (#fffde7)11:1Excellent

Color Palettes That Work

Brand ColorDark ModuleLight ModuleWorks?
Blue brandDark blueLight blueYes (check contrast)
Green brandDark greenLight greenYes (check contrast)
Red brandDark redLight pinkYes (if contrast > 5:1)
Purple brandDark purpleLight lavenderYes (if contrast > 5:1)
Yellow brandDark orange/goldLight yellowYes (with dark foreground)
Orange brandDark orange/brownLight peachYes (with dark foreground)

Color Combinations to Avoid

Dark ModuleLight BackgroundProblem
Light blueWhiteToo little contrast
YellowWhiteNearly invisible
GrayWhiteContrast below 3:1
RedOrangeToo similar brightness
GreenCyanToo similar brightness
Any pastelWhiteInsufficient contrast

Creating Colored QR Codes

Step 1: Choose Your Color Scheme

Select two colors:

  • Dark module color: Should be significantly darker than the background
  • Light module/background color: Should be significantly lighter than the dark modules

Step 2: Test Contrast

Use a contrast checking tool to verify your color combination meets at least 3:1 ratio (5:1+ recommended).

Step 3: Generate QR Code

Use a free QR code generator that supports color customization:

  1. Enter your URL or content
  2. Choose error correction Level M or Q
  3. Set dark module color (foreground)
  4. Set light module color (background)

Step 4: Test Scan

Always test colored QR codes:

  • Print at intended size and material
  • Scan with 3+ different phones
  • Test in different lighting conditions
  • Test at different angles

Advanced Color Techniques

Gradients

Gradient QR codes use a smooth transition between two colors:

Best practice:

  • Gradual gradient (not abrupt)
  • Dark end of gradient must still be sufficiently dark
  • Light end of gradient must still be sufficiently light
  • Test on both ends of the gradient

Duotone

Two primary colors with a neutral background.

Example: Red foreground on white background with black finders.

Transparent Background

QR code with transparent background for placement on images.

Best practice:

  • Ensure the underlying image is light enough for contrast
  • Add a subtle outline or shadow to separate modules from image
  • Test on multiple images before finalizing

Brand Color Matching

Matching Your Brand

Brand ColorQR DarkQR LightNotes
Blue (#1976D2)#0D47A1WhiteUse darker shade of blue
Green (#388E3C)#1B5E20WhiteUse darker shade of green
Red (#D32F2F)#B71C1CWhiteUse darker shade of red
Purple (#7B1FA2)#4A148CWhiteUse darker shade of purple
Orange (#F57C00)#E65100WhiteUse darker shade of orange

What Not to Do

  • Don't use your brand's light color as the dark module
  • Don't invert colors (light modules on dark background) — many scanners fail
  • Don't use the same color for both modules (clearly)
  • Don't place QR code on a busy image without a contrast check

Creating Branded Colored QR Codes

Create a colored QR code — customize QR code colors to match your brand while maintaining reliable scanning.

Conclusion

Colored QR codes work when contrast is maintained. Use significantly darker colors for modules and significantly lighter colors for the background. Test every color combination before mass production.

Create your branded QR code — generate a QR code in your brand colors with guaranteed scan reliability.


Was this article helpful?

Try Our QR Code Generator