Skip to content

Dark workspace roles

Separate the canvas and card surfaces, use pale body text, and give the light-blue action a dark label. Check secondary text on both surfaces.

Colors and palette cases

Editorial example reviewed September 13, 2026. Numeric results below are calculated from these values.

Nearest reference name

Night

RGB 17, 24, 39

Explore color

Nearest reference name

Gunmetal

RGB 31, 41, 55

Explore color

Nearest reference name

White

RGB 249, 250, 251

Explore color

Nearest reference name

Dark Gray

RGB 156, 163, 175

Explore color

Nearest reference name

Sky Blue

RGB 147, 197, 253

Explore color

Assign roles and check the pair

The lightest and darkest supplied values are the starting reading pair. The accent label adds black or white, whichever has greater contrast. You can change the accent below.

A palette in context

Use this preview to inspect reading text and an accent label.

Example action

Reading text #111827 on #F9FAFB: 16.975:1 - Pass normal text AA.

Accent label #FFFFFF on #111827: 17.740:1.

Checks use unrounded ratios and opaque sRGB. The example action is a visual sample. Test boundaries, focus and hover in your actual component.

All color pairs: normal text AA
:root {
  --surface: #F9FAFB;
  --text: #111827;
  --accent: #111827;
  --on-accent: #FFFFFF;
}

Keep the scope of each result clear

All comparisons use opaque sRGB and WCAG relative luminance. Normal-text AA requires 4.5:1; a displayed rounded ratio never overrides the unrounded pass or fail. A palette is not a complete accessibility audit.

W3C contrast requirements ? Methods and limitations ? Turn values into semantic tokens