Color Roles9 min read

Background Colors: How to Choose the Perfect Canvas

The foundation of your design. Get it right, and everything else falls into place.

Why Background Color Matters

Your background color occupies more screen space than any other element, typically 60% or more in the 60-30-10 rule. It sets the tone, affects readability, influences mood, and determines which other colors will work in your palette. A poor background choice can undermine even the best content.

Background Types and When to Use Them

#ffffff

Pure White

Pros
  • Maximum readability
  • Clean, minimal look
  • Safe for all content types
Cons
  • Can feel clinical or stark
  • Eye strain in dark environments
  • No visual warmth

Best for: Documentation, text-heavy sites, portfolios, medical/clinical applications

#faf8f5

Off-White / Warm

Pros
  • Warmer, more inviting feel
  • Reduced eye strain
  • Subtle sophistication
Cons
  • Slightly less contrast
  • Can feel dated if overdone
  • May clash with cool brand colors

Best for: Lifestyle brands, editorial content, e-commerce, hospitality

#f4f4f5

Light Gray

Pros
  • Modern, neutral appearance
  • Great for card-based layouts
  • Reduces white glare
Cons
  • Less contrast than white
  • Can feel dull without accent colors
  • Needs careful text contrast

Best for: SaaS dashboards, tech products, news sites, enterprise applications

#0a0a0b

Dark / Near Black

Pros
  • Dramatic, immersive
  • Reduces eye strain in low light
  • Makes colors pop
Cons
  • Harder to read long text
  • Not suitable for all industries
  • Can feel heavy

Best for: Entertainment, gaming, photography, luxury brands, creative portfolios

#0f172a

Brand-Tinted Dark

Pros
  • Unique brand identity
  • More character than pure black
  • Cohesive with brand palette
Cons
  • Must ensure contrast
  • Can limit accent color options
  • Requires careful balancing

Best for: Tech products, creative agencies, premium SaaS, modern startups

#1e3a5f

Colored Background

Pros
  • Strong brand statement
  • Memorable and unique
  • Creates emotional impact
Cons
  • Limits other color usage
  • Accessibility challenges
  • Can overwhelm content

Best for: Landing pages, hero sections, promotional pages, single-purpose apps

Background and Contrast

Your background color directly determines what text and UI colors you can use. Here are contrast ratios for common combinations:

Background
Text
Ratio
Rating
#ffffff
#000000
21:1
Excellent
#f4f4f5
#18181b
15:1
Excellent
#0a0a0b
#fafafa
19:1
Excellent
#1e3a5f
#ffffff
9:1
Very Good
#3b82f6
#ffffff
4.5:1
Acceptable
#3b82f6
#000000
4.7:1
Acceptable

For body text, aim for at least 7:1 contrast. For large headings, 4.5:1 is acceptable. Learn more in our WCAG contrast guide.

Dark Mode Best Practices

Dark mode is not just inverting your light design. It requires thoughtful adjustments to maintain usability and aesthetics.

Do not use pure black

Pure black (#000000) creates harsh contrast. Use dark grays like #121212 or #1a1a1a for a softer feel.

Reduce saturation of colors

Highly saturated colors that look great on white can appear to vibrate on dark backgrounds. Reduce saturation by 10 to 20%.

Increase perceived depth

Use slightly lighter backgrounds for elevated surfaces like cards and modals to create visual hierarchy.

Adjust text weight

Light text on dark backgrounds can appear thinner. Consider increasing font weight slightly for body text.

Test in actual dark environments

View your dark mode design in a dark room. Issues that are invisible in a bright office become apparent.

Creating Layered Backgrounds

Modern interfaces often use multiple background levels to create depth and organize content. Here is how to build a background system:

Light Mode Elevation Scale

Level 0: Page background

#f4f4f5 or similar light gray

Level 1: Cards and content areas

#ffffff with subtle shadow

Level 2: Popovers and modals

#ffffff with more prominent shadow

Dark Mode Elevation Scale

Level 0: Page background

#0a0a0b or #121212

Level 1: Cards and content areas

#171717 slightly lighter

Level 2: Popovers and modals

#262626 even lighter

Industry Guidelines

Tech and SaaS

Light gray backgrounds for dashboards (#f4f4f5). White for documentation. Dark mode option essential. Avoid pure white for extended use.

E-commerce

White or off-white to showcase products. Colored backgrounds only for promotions. Ensure product images stand out clearly.

Media and Entertainment

Dark backgrounds let visual content shine. Near-black (#0f0f0f) for video platforms. Reduces eye strain during long viewing sessions.

Finance and Banking

White or very light backgrounds convey trust and clarity. Avoid dark modes for critical financial data. High contrast is essential.

Generate Background-Ready Palettes

Our AI generates complete 5-color palettes with background colors that work in both light and dark modes, with guaranteed contrast ratios.

Generate Color Palette

Continue Learning