June 1, 2026
How to Customize QR Code Colors: Brand Guidelines for QR 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 Ratio | Scan Reliability |
|---|---|
| >7:1 | Excellent (no issues) |
| 5:1 to 7:1 | Very good |
| 3:1 to 5:1 | Acceptable (test required) |
| <3:1 | Poor (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 Module | Light Background | Contrast | Rating |
|---|---|---|---|
| Black (#000000) | White (#FFFFFF) | 21:1 | Excellent |
| Dark blue (#000080) | White (#FFFFFF) | 15:1 | Excellent |
| Dark green (#006400) | White (#FFFFFF) | 13:1 | Excellent |
| Dark red (#8B0000) | White (#FFFFFF) | 9:1 | Excellent |
| Dark gray (#333333) | White (#FFFFFF) | 9:1 | Excellent |
| Navy (#1a237e) | Light gray (#f5f5f5) | 12:1 | Excellent |
| Dark green (#1b5e20) | Cream (#fffde7) | 11:1 | Excellent |
Color Palettes That Work
| Brand Color | Dark Module | Light Module | Works? |
|---|---|---|---|
| Blue brand | Dark blue | Light blue | Yes (check contrast) |
| Green brand | Dark green | Light green | Yes (check contrast) |
| Red brand | Dark red | Light pink | Yes (if contrast > 5:1) |
| Purple brand | Dark purple | Light lavender | Yes (if contrast > 5:1) |
| Yellow brand | Dark orange/gold | Light yellow | Yes (with dark foreground) |
| Orange brand | Dark orange/brown | Light peach | Yes (with dark foreground) |
Color Combinations to Avoid
| Dark Module | Light Background | Problem |
|---|---|---|
| Light blue | White | Too little contrast |
| Yellow | White | Nearly invisible |
| Gray | White | Contrast below 3:1 |
| Red | Orange | Too similar brightness |
| Green | Cyan | Too similar brightness |
| Any pastel | White | Insufficient 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:
- Enter your URL or content
- Choose error correction Level M or Q
- Set dark module color (foreground)
- 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 Color | QR Dark | QR Light | Notes |
|---|---|---|---|
| Blue (#1976D2) | #0D47A1 | White | Use darker shade of blue |
| Green (#388E3C) | #1B5E20 | White | Use darker shade of green |
| Red (#D32F2F) | #B71C1C | White | Use darker shade of red |
| Purple (#7B1FA2) | #4A148C | White | Use darker shade of purple |
| Orange (#F57C00) | #E65100 | White | Use 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.