Skip to main content
minimal

Dark Gray and White

10.37:1 contrast ratio —

AAA

Visual Preview

#404040Dark Gray
#FFFFFFWhite

The quick brown fox

Body text — Dark Gray on White

Supporting text at reduced opacity

Badge

Reversed — White on Dark Gray

Inverted combination preview

Contrast Analysis

Contrast Ratio

10.37:1

AAA

WCAG AA

✓ Pass

Requires 4.5:1

WCAG AA Large

✓ Pass

Requires 3:1

WCAG AAA

✓ Pass

Requires 7:1

Color Values

Dark Gray

Foreground (Text)

HEX
#404040
RGB
rgb(64, 64, 64)
HSL
hsl(0, 0%, 25%)

White

Background

HEX
#FFFFFF
RGB
rgb(255, 255, 255)
HSL
hsl(0, 0%, 100%)

Design Use Cases

  • Accessibility-critical text
  • Body copy
  • Public sector services
  • Medical content

Industry Recommendations

Accessibility-First Products
Publishing
Legal Services
Education
Government

Color Psychology

The Dark Gray tone evokes neutrality, balance, and professionalism, while White brings purity, clarity, and simplicity. Together, they create a balanced palette suited for compelling visual communication.

Palette Exports

:root {
  --color-dark-gray: #404040;
  --color-white: #FFFFFF;
}

.combo-dark-gray-white {
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

Quick Snippets

CSS Variables

:root {
  --color-dark-gray: #404040;
  --color-white: #FFFFFF;
}

Tailwind CSS

<div class="bg-white text-stone-700">
  Your content here
</div>

Individual Colors

Similar Combinations