Cobalt Slab

Export

Code

/* Cobalt Slab — colorset.net */
:root {
  --color-1: #DAD8D3;
  --color-2: #1F3FFF;
  --color-3: #FFD400;
  --color-4: #9E9B95;
  --color-5: #111111;

  --color-bg: #F7F7F5;
  --color-surface: #EEEDEC;
  --color-border: #D7D5D0;
  --color-text: #111111;
  --color-muted: #676767;
  --color-primary: #1F3FFF;
  --color-on-primary: #FFFFFF;
  --color-accent: #8B7300;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-surface: #1B1B1B;
    --color-border: #322F30;
    --color-text: #DAD8D3;
    --color-muted: #878580;
    --color-primary: #2852FF;
    --color-on-primary: #FFFFFF;
    --color-accent: #FFD400;
    --color-on-accent: #111111;
  }
}

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 #DAD8D3from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5from palette · color 1
Muted textderivedderived
Primaryfrom palette · color 2adjusted for contrast · from #1F3FFF
On primaryderivedderived
Accentadjusted for contrast · from #9E9B95from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background17.60:1AAA pass 4.5:1
Text on surface16.15:1AAA pass 4.5:1
Muted text on background5.27:1AA pass 4.5:1
Label on primary6.54:1AA pass 4.5:1
Label on accent4.62:1AA pass 4.5:1
Primary on background6.09:1AA pass 3:1
Accent on background4.30:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background13.26:1AAA pass 4.5:1
Text on surface12.09:1AAA pass 4.5:1
Muted text on background5.12:1AA pass 4.5:1
Label on primary5.61:1AA pass 4.5:1
Label on accent13.19:1AAA pass 4.5:1
Primary on background3.36:1AA Large pass 3:1
Accent on background13.19: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#DAD8D3 (Text 1)#1F3FFF (Text 2)#FFD400 (Text 3)#9E9B95 (Text 4)#111111 (Text 5)
#DAD8D3Same color4.59AA1.01—1.95—13.26AAA
#1F3FFF4.59AASame color4.57AA2.36—2.89—
#FFD4001.01—4.57AASame color1.94—13.19AAA
#9E9B951.95—2.36—1.94—Same color6.81AA
#11111113.26AAA2.89—13.19AAA6.81AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#DAD8D3#1F3FFF#FFD400#9E9B95#111111

Variations

About Cobalt Slab

Slab grey with pure cobalt and a caution-yellow tag. No single hue dominates Cobalt Slab: blue carries about 40% of the color weight, shared with yellow and neutral, and gray #9E9B95 sits in the middle of the range. A 172° hue spread puts vivid blue against pale yellow #FFD400, close to a complementary contrast. Lightness runs from 18% to 88% (OKLCH), with #9E9B95 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is medium (mean OKLCH chroma 0.095, peaking at 0.278 in #1F3FFF); the colors are clear without being loud. In light mode #F7F7F5 becomes the background with #111111 text at 17.6:1, and #1F3FFF takes the primary role. Try it for illustration, data visualization and brand systems with many sub-brands, letting vivid blue #1F3FFF carry the key actions.

Cobalt Slab color palette: #DAD8D3, #1F3FFF, #FFD400, #9E9B95, #111111
Share image for Cobalt Slab

Gradients in similar colors