Magnesium

#c1c2c3

Neutral mid-light gray for crisp, restrained UI

Save
Share

About Magnesium

Magnesium reads like a clean, industrial wipe-down: a light gray that feels slightly more matter-of-fact than the softer cool options nearby. It's not the refrigerator-door chill of , and it doesn't have the dusty blue-mist calm of . Compared to , it holds closer to neutral, so the overall temperature stays steadier and less "cool-push."

I use Magnesium for secondary UI surfaces when I want less blue-forward presence and a more even, workhorse tone. It's my go-to for dashboards and finance apps where tables, filter panels, and form backgrounds need to separate sections without leaning into a noticeable blue agenda. The saturation is restrained and the lightness is just high enough that it doesn't fight white space, but it still anchors layouts better than the paler grays.

Quirk: paired with very cool teals and blues, it can look a bit flatter. For balance, I like it next to darker slates and neutral text so the hierarchy stays crisp.

Gradient preview

See how this color looks in an animated mesh gradient.

Conversions

Click any value to copy.

Need this programmatically? Color API

Code snippets

Copy this color into your project.

Contrast checker

WCAG 2.1 contrast ratios. AA requires 4.5:1 for normal text, 3:1 for large. AAA requires 7:1 / 4.5:1.

On White #ffffff

Aa
1.78:1Fail

On Gray 100 #f5f5f5

Aa
1.64:1Fail

On Gray 900 #18181b

Aa
9.93:1AAA

On Black #000000

Aa
11.77:1AAA

Variations

Shades

Darker variations, created by mixing toward black.

Tints

Lighter variations, created by mixing toward white.

Tones

Muted variations, created by reducing saturation.

Hues

Hue rotations around the color wheel.

Temperatures

Warm and cool shifts of this color.

Color harmonies

Complementary
Analogous
Triadic
Split Complementary
Tetradic

Suggested palettes

Palettes built around this color.

4 colors
3 colors
4 colors
4 colors

Community palettes

Published palettes that include this color.

Similar colors

#c0c3c4
#c0c2c0
#c0c0c0
#bcc3c7
#c8c2be
#c0bfc7

Create a gradient with Magnesium

Open the generator with this color pre-loaded.

Start creating