Obsidian Shard

Export

Code

/* Obsidian Shard — colorset.net */
:root {
  --color-1: #000000;
  --color-2: #0C0C0C;
  --color-3: #1C1C1C;
  --color-4: #2F2F2F;
  --color-5: #404040;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #000000;
  --color-muted: #4A4A4A;
  --color-primary: #404040;
  --color-on-primary: #FFFFFF;
  --color-accent: #0C0C0C;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #000000;
    --color-border: #090707;
    --color-text: #969696;
    --color-muted: #777777;
    --color-primary: #5B5B5B;
    --color-on-primary: #FFFFFF;
    --color-accent: #8C8C8C;
    --color-on-accent: #000000;
  }
}

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 background19.60:1AAA pass 4.5:1
Text on surface17.94:1AAA pass 4.5:1
Muted text on background8.27:1AAA pass 4.5:1
Label on primary10.37:1AAA pass 4.5:1
Label on accent19.56:1AAA pass 4.5:1
Primary on background9.68:1AAA pass 3:1
Accent on background18.26:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.10:1AAA pass 4.5:1
Text on surface7.10:1AAA pass 4.5:1
Muted text on background4.69:1AA pass 4.5:1
Label on primary6.79:1AA pass 4.5:1
Label on accent6.25:1AA pass 4.5:1
Primary on background3.09:1AA Large pass 3:1
Accent on background6.25: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#000000 (Text 1)#0C0C0C (Text 2)#1C1C1C (Text 3)#2F2F2F (Text 4)#404040 (Text 5)
#000000Same color1.07—1.23—1.57—2.03—
#0C0C0C1.07—Same color1.15—1.46—1.89—
#1C1C1C1.23—1.15—Same color1.27—1.64—
#2F2F2F1.57—1.46—1.27—Same color1.29—
#4040402.03—1.89—1.64—1.29—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#000000#0C0C0C#1C1C1C#2F2F2F#404040

Variations

About Obsidian Shard

Obsidian Shard brings together two near-blacks, a charcoal and two slates (#000000, #0C0C0C, #1C1C1C, #2F2F2F, #404040) in a balanced, neutral-led scheme. Every color is a neutral, from #404040 down to #000000, so the palette works through light and shade alone. With lightness between 0% and 37% and #1C1C1C near the middle, there is enough spread for layered surfaces but not maximum text contrast. There is effectively no chroma in any of the colors, so #1C1C1C and the rest read as pure grays. As a UI theme it uses #404040 for primary actions and #0C0C0C as the accent; dark mode sits on #000000 with #969696 text (7.1:1). Try it for gaming sites, dark-mode dashboards and film and media, letting slate #404040 carry the key actions.

Obsidian Shard color palette: #000000, #0C0C0C, #1C1C1C, #2F2F2F, #404040
Share image for Obsidian Shard

Gradients in similar colors