Export

Code

/* Cobalt Gray — colorset.net */
:root {
  --color-1: #4F5D75;
  --color-2: #61758D;
  --color-3: #8896A6;
  --color-4: #B0BEC5;
  --color-5: #CFD8DC;

  --color-bg: #F4F7F8;
  --color-surface: #EBEEEF;
  --color-border: #CFD6D9;
  --color-text: #424F66;
  --color-muted: #5E6B82;
  --color-primary: #61758D;
  --color-on-primary: #FFFFFF;
  --color-accent: #818A8D;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0B1017;
    --color-surface: #151A21;
    --color-border: #282E39;
    --color-text: #CFD8DC;
    --color-muted: #7C8588;
    --color-primary: #61758D;
    --color-on-primary: #FFFFFF;
    --color-accent: #B0BEC5;
    --color-on-accent: #0B1017;
  }
}

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 #CFD8DCadjusted for contrast · from #4F5D75
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #4F5D75from palette · color 5
Muted textderivedderived
Primaryfrom palette · color 2from palette · color 2
On primaryderivedderived
Accentadjusted for contrast · from #8896A6from palette · color 4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.67:1AAA pass 4.5:1
Text on surface7.08:1AAA pass 4.5:1
Muted text on background5.00:1AA pass 4.5:1
Label on primary4.73:1AA pass 4.5:1
Label on accent5.95:1AA pass 4.5:1
Primary on background4.40:1AA Large pass 3:1
Accent on background3.28:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background13.18:1AAA pass 4.5:1
Text on surface12.07:1AAA pass 4.5:1
Muted text on background5.06:1AA pass 4.5:1
Label on primary4.73:1AA pass 4.5:1
Label on accent10.01:1AAA pass 4.5:1
Primary on background4.03:1AA Large pass 3:1
Accent on background10.01: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#4F5D75 (Text 1)#61758D (Text 2)#8896A6 (Text 3)#B0BEC5 (Text 4)#CFD8DC (Text 5)
#4F5D75Same color1.41—2.21—3.49AA Large4.60AA
#61758D1.41—Same color1.57—2.48—3.27AA Large
#8896A62.21—1.57—Same color1.58—2.08—
#B0BEC53.49AA Large2.48—1.58—Same color1.32—
#CFD8DC4.60AA3.27AA Large2.08—1.32—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#4F5D75#61758D#8896A6#B0BEC5#CFD8DC

Variations

About Cobalt Gray

Cobalt Gray is a balanced blue-and-neutral palette of 5 colors that runs from light gray #CFD8DC to dusty blue #4F5D75. With a hue spread of just 8°, it is effectively monochromatic: #4F5D75 and #61758D differ mostly in lightness. Lightness spans 48% (#4F5D75) to 88% (#CFD8DC), a moderate range; text roles may need slight darkening for full contrast. Saturation is very low (mean OKLCH chroma 0.029, peaking at 0.044 in #61758D); the palette is close to grayscale. As a UI theme it uses #61758D for primary actions and #818A8D as the accent; dark mode sits on #0B1017 with #CFD8DC text (13.2:1). With #61758D leading, good fits include marketing pages, brand systems with many sub-brands and boutique brands.

Cobalt Gray color palette: #4F5D75, #61758D, #8896A6, #B0BEC5, #CFD8DC
Share image for Cobalt Gray

Gradients in similar colors