← Color combinations

Blue and White Color Combinations (Dark): Hex Codes and Contrast

How blue and white work together in a deep, dark version: hex codes, contrast, which should lead, the neutrals and accent to add, and what the pair says.

Blue and white in their deep, dark versions are a combination people ask about often. Blue (Marine (#142B5A)) brings sky, sea and trust; white (Fog (#D7D7D7)) brings purity, new beginnings and space. Put together, the pair reads as serious and rich. This guide shows how to use them, how readable they are together and which neutrals and accents to add.

How they look together

Measured against each other the two colors reach 9.58:1 (AAA). That is enough for text of either color on the other, which is unusual for a color pair and gives you real flexibility.

CombinationContrastLevel
Blue on white9.58:1AAA
Blue on a light neutral12.21:1AAA
White on a light neutral1.27:1Fail
Blue on a dark neutral1.34:1Fail
White on a dark neutral12.91:1AAA

Which one should lead?

Give most of the space to one and use the other as the accent. Here blue is the more saturated of the two, so it draws the eye first. Let it lead for backgrounds and headlines, and keep the other for details, buttons and highlights. A split near 70 to 30 usually feels balanced; an even 50 to 50 makes the eye work to decide what is important.

Neutrals and accents to add

Putting it in a layout

Part of the pageBackgroundText or detailContrast
Hero section#142B5A#FFFFFF13.78:1
Cards#F3F1EC#11131816.46:1
Primary button#D7D7D7#11111113.11:1
Footer#111318#F3F1EC16.46:1

That layout gives blue the large areas and white the action. Every row reaches at least 4.5 to 1, so all the text is comfortable to read.

Extending the pair

Two colors rarely cover a whole design. Tints and shades of each give you more steps without introducing a third hue, so the pair stays recognizable.

Common mistakes

As CSS

CSS variablescss
:root {
  --blue: #142B5A;
  --white: #D7D7D7;
  --paper: #F3F1EC;
  --ink: #111318;
  --accent: #5C2014;
}

What the combination says

Blue signals links and primary actions in interfaces and information and mandatory-action signs. White signals surrender and peace flags and cleanliness in healthcare. When both appear, viewers may read either meaning, depending on which leads, so check that the message you want is the one the proportions give.

Where it works