Export

Code

/* Onyx Black — colorset.net */
:root {
  --color-1: #1C1C1C;
  --color-2: #2F2F2F;
  --color-3: #454545;
  --color-4: #5C5C5C;
  --color-5: #737373;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #1C1C1C;
  --color-muted: #696969;
  --color-primary: #737373;
  --color-on-primary: #FFFFFF;
  --color-accent: #2F2F2F;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1C1C1C;
    --color-surface: #272727;
    --color-border: #3F3B3C;
    --color-text: #B3B3B3;
    --color-muted: #8F8F8F;
    --color-primary: #737373;
    --color-on-primary: #FFFFFF;
    --color-accent: #A6A6A6;
    --color-on-accent: #1C1C1C;
  }
}

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
Backgroundadjusted for contrast · from #737373from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #737373
Muted textderivedderived
Primaryfrom palette · color 5from palette · color 5
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #737373
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.91:1AAA pass 4.5:1
Text on surface14.56:1AAA pass 4.5:1
Muted text on background5.12:1AA pass 4.5:1
Label on primary4.74:1AA pass 4.5:1
Label on accent13.39:1AAA pass 4.5:1
Primary on background4.43:1AA Large pass 3:1
Accent on background12.50:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background8.13:1AAA pass 4.5:1
Text on surface7.12:1AAA pass 4.5:1
Muted text on background5.27:1AA pass 4.5:1
Label on primary4.74:1AA pass 4.5:1
Label on accent7.00:1AAA pass 4.5:1
Primary on background3.59:1AA Large pass 3:1
Accent on background7.00:1AAA 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#1C1C1C (Text 1)#2F2F2F (Text 2)#454545 (Text 3)#5C5C5C (Text 4)#737373 (Text 5)
#1C1C1CSame color1.27—1.78—2.55—3.59AA Large
#2F2F2F1.27—Same color1.40—2.00—2.82—
#4545451.78—1.40—Same color1.43—2.02—
#5C5C5C2.55—2.00—1.43—Same color1.41—
#7373733.59AA Large2.82—2.02—1.41—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#1C1C1C#2F2F2F#454545#5C5C5C#737373

Variations

About Onyx Black

Nearly all of the color weight in Onyx Black sits in neutral, which makes it a balanced palette anchored by slate #454545. There is no real hue here; neutrals between #1C1C1C and #737373 do all the work with value contrast. Lightness spans 23% (#1C1C1C) to 56% (#737373), a moderate range; text roles may need slight darkening for full contrast. Chroma stays at zero across the set; even #454545 in the middle is a true gray. Text contrast reaches 15.9:1 in light mode and 8.1:1 in dark mode, with #737373 as primary and #2F2F2F as accent. Try it for minimal branding, focused single-product sites and typography-led layouts, letting gray #737373 carry the key actions.

Onyx Black color palette: #1C1C1C, #2F2F2F, #454545, #5C5C5C, #737373
Share image for Onyx Black

Gradients in similar colors