Export

Code

/* Onyx Dark — colorset.net */
:root {
  --color-1: #0F0F0F;
  --color-2: #1C1C1C;
  --color-3: #2E2E2E;
  --color-4: #353839;
  --color-5: #454545;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #0F0F0F;
  --color-muted: #656565;
  --color-primary: #454545;
  --color-on-primary: #FFFFFF;
  --color-accent: #1C1C1C;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F0F0F;
    --color-surface: #191919;
    --color-border: #302C2D;
    --color-text: #A5A5A5;
    --color-muted: #838383;
    --color-primary: #666666;
    --color-on-primary: #FFFFFF;
    --color-accent: #989898;
    --color-on-accent: #0F0F0F;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.89:1AAA pass 4.5:1
Text on surface16.37:1AAA pass 4.5:1
Muted text on background5.44:1AA pass 4.5:1
Label on primary9.59:1AAA pass 4.5:1
Label on accent17.04:1AAA pass 4.5:1
Primary on background8.95:1AAA pass 3:1
Accent on background15.91:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.78:1AAA pass 4.5:1
Text on surface7.14:1AAA pass 4.5:1
Muted text on background5.06:1AA pass 4.5:1
Label on primary5.74:1AA pass 4.5:1
Label on accent6.64:1AA pass 4.5:1
Primary on background3.34:1AA Large pass 3:1
Accent on background6.64:1AA 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#0F0F0F (Text 1)#1C1C1C (Text 2)#2E2E2E (Text 3)#353839 (Text 4)#454545 (Text 5)
#0F0F0FSame color1.12—1.41—1.62—2.00—
#1C1C1C1.12—Same color1.25—1.44—1.78—
#2E2E2E1.41—1.25—Same color1.15—1.42—
#3538391.62—1.44—1.15—Same color1.23—
#4545452.00—1.78—1.42—1.23—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0F0F0F#1C1C1C#2E2E2E#353839#454545

Variations

About Onyx Dark

Five colors make up Onyx Dark, a balanced neutral set: #0F0F0F, #1C1C1C, #2E2E2E, #353839, #454545. Every color is a neutral, from #454545 down to #0F0F0F, so the palette works through light and shade alone. From #0F0F0F to #454545 the colors share a similar dark value (lightness 17%–39%), which suits fills and illustration more than body text. There is effectively no chroma in any of the colors, so #2E2E2E and the rest read as pure grays. In light mode #F7F7F7 becomes the background with #0F0F0F text at 17.9:1, and #454545 takes the primary role. Its dark and monochrome character, led by #454545, suits editorial layouts, minimal portfolios and film and media.

These colors are almost the same as Coal Black.

Onyx Dark color palette: #0F0F0F, #1C1C1C, #2E2E2E, #353839, #454545
Share image for Onyx Dark

Gradients in similar colors