Export

Code

/* Onyx Deep — colorset.net */
:root {
  --color-1: #0D0D0D;
  --color-2: #1A1A1A;
  --color-3: #262626;
  --color-4: #333333;
  --color-5: #404040;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #0D0D0D;
  --color-muted: #646464;
  --color-primary: #404040;
  --color-on-primary: #FFFFFF;
  --color-accent: #1A1A1A;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0D0D0D;
    --color-surface: #171717;
    --color-border: #2D2A2B;
    --color-text: #A2A2A2;
    --color-muted: #808080;
    --color-primary: #646464;
    --color-on-primary: #FFFFFF;
    --color-accent: #969696;
    --color-on-accent: #0D0D0D;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background18.14:1AAA pass 4.5:1
Text on surface16.60:1AAA pass 4.5:1
Muted text on background5.52:1AA pass 4.5:1
Label on primary10.37:1AAA pass 4.5:1
Label on accent17.40:1AAA pass 4.5:1
Primary on background9.68:1AAA pass 3:1
Accent on background16.25:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.61:1AAA pass 4.5:1
Text on surface7.02:1AAA pass 4.5:1
Muted text on background4.92:1AA pass 4.5:1
Label on primary5.92:1AA pass 4.5:1
Label on accent6.57:1AA pass 4.5:1
Primary on background3.28:1AA Large pass 3:1
Accent on background6.57: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#0D0D0D (Text 1)#1A1A1A (Text 2)#262626 (Text 3)#333333 (Text 4)#404040 (Text 5)
#0D0D0DSame color1.12—1.28—1.54—1.87—
#1A1A1A1.12—Same color1.15—1.38—1.68—
#2626261.28—1.15—Same color1.20—1.46—
#3333331.54—1.38—1.20—Same color1.22—
#4040401.87—1.68—1.46—1.22—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#0D0D0D#1A1A1A#262626#333333#404040

Variations

About Onyx Deep

Onyx Deep is a balanced neutral palette of 5 colors that runs from slate #404040 to near-black #0D0D0D. There is no real hue here; neutrals between #0D0D0D and #404040 do all the work with value contrast. All five colors stay in a narrow dark band (16% to 37% lightness, #0D0D0D to #404040), so text and background roles are adjusted for contrast. Chroma stays at zero across the set; even #262626 in the middle is a true gray. In light mode #F7F7F7 becomes the background with #0D0D0D text at 18.1:1, and #404040 takes the primary role. With #404040 leading, good fits include minimal portfolios, editorial layouts and luxury products.

Onyx Deep color palette: #0D0D0D, #1A1A1A, #262626, #333333, #404040
Share image for Onyx Deep

Gradients in similar colors