Export

Code

/* Black White — colorset.net */
:root {
  --color-1: #000000;
  --color-2: #FFFFFF;
  --color-3: #F5F5F5;
  --color-4: #E0E0E0;
  --color-5: #4682B4;

  --color-bg: #FFFFFF;
  --color-surface: #F6F6F6;
  --color-border: #E0DCDD;
  --color-text: #000000;
  --color-muted: #4D4D4D;
  --color-primary: #3D79AA;
  --color-on-primary: #FFFFFF;
  --color-accent: #8C8C8C;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #000000;
    --color-border: #090707;
    --color-text: #FFFFFF;
    --color-muted: #7A7A7A;
    --color-primary: #3D79AA;
    --color-on-primary: #000000;
    --color-accent: #5B5B5B;
    --color-on-accent: #FFFFFF;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundfrom palette · color 2from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 2
Muted textderivedderived
Primaryadjusted for contrast · from #4682B4adjusted for contrast · from #4682B4
On primaryderivedderived
Accentadjusted for contrast · from #4682B4adjusted for contrast · from #4682B4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background21.00:1AAA pass 4.5:1
Text on surface19.43:1AAA pass 4.5:1
Muted text on background8.45:1AAA pass 4.5:1
Label on primary4.65:1AA pass 4.5:1
Label on accent6.25:1AA pass 4.5:1
Primary on background4.65:1AA pass 3:1
Accent on background3.36:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background21.00:1AAA pass 4.5:1
Text on surface21.00:1AAA pass 4.5:1
Muted text on background4.89:1AA pass 4.5:1
Label on primary4.51:1AA pass 4.5:1
Label on accent6.79:1AA pass 4.5:1
Primary on background4.51:1AA pass 3:1
Accent on background3.09:1AA Large pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#000000 (Text 1)#FFFFFF (Text 2)#F5F5F5 (Text 3)#E0E0E0 (Text 4)#4682B4 (Text 5)
#000000Same color21.00AAA19.26AAA15.91AAA5.11AA
#FFFFFF21.00AAASame color1.09—1.32—4.11AA Large
#F5F5F519.26AAA1.09—Same color1.21—3.77AA Large
#E0E0E015.91AAA1.32—1.21—Same color3.11AA Large
#4682B45.11AA4.11AA Large3.77AA Large3.11AA LargeSame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#000000#FFFFFF#F5F5F5#E0E0E0#4682B4

Variations

About Black White

Black White brings together a near-black, two whites, a light gray and a blue (#000000, #FFFFFF, #F5F5F5, #E0E0E0, #4682B4) in a balanced, neutral-and-blue-led scheme. #4682B4 is the only chromatic color, so it naturally becomes the focal point against the neutrals. A 100-point lightness range (0% for #000000 to 100% for #FFFFFF) gives strong value contrast, useful for text on background. Average chroma is 0.020, very low for a palette, so the palette is close to grayscale; the most saturated color is #4682B4. As a UI theme it uses #3D79AA for primary actions and #8C8C8C as the accent; dark mode sits on #000000 with #FFFFFF text (21.0:1). Try it for brand systems with many sub-brands, marketing pages and data visualization, letting blue #4682B4 carry the key actions.

Black White color palette: #000000, #FFFFFF, #F5F5F5, #E0E0E0, #4682B4
Share image for Black White

Gradients in similar colors