The M3 baseline color scheme uses the same roles and token mapping as user-generated color schemes. For full details on working with color roles, see the applying color schemes section.
{{ Material baseline colors applied throughout a UI and components. With the baseline color roles as a starting point for color mapping, apps can use dynamic color. }}
{{ The M3 baseline color scheme uses a purple primary color and complementary accent colors that follow the logic of a cutom theme's tonal relationships. }}
The baseline colors translate to groups of related tones. The tones are mapped to roles that create contrast and visual interest when applied to elements in the UI.
The same tonal palettes created from M3 baseline's five key colors also produce the colors to comprise a dark scheme.
Token Table (example)
Role | System token | Light scheme ref token | Dark scheme ref token | Light scheme default value | Dark scheme default value |
---|---|---|---|---|---|
Primary | md.sys.color.primary | md.ref.palette.primary40 | md.ref.palette.primary80 | #6750A4 | #D0BCFF |
Primary container | md.sys.color.primary-container | md.ref.palette.primary90 | md.ref.palette.primary30 | ||
Secondary | md.sys.color.secondary | md.ref.palette.secondary40 | md.ref.palette.secondary80 | ||
Secondary container | |||||
Tertiary | |||||
Tertiary container | |||||
Surface | |||||
Surface variant | |||||
Background | |||||
Error | |||||
Error container | |||||
On primary | |||||
On primary container | |||||
On secondary | |||||
On secondary container | |||||
On tertiary | |||||
On tertiary container | |||||
On surface | |||||
On surface variant | |||||
On error | |||||
On error container | |||||
On background | |||||
Outline | |||||
Shadow | |||||
Surface tint | |||||
Inverse surface | |||||
Inverse on surface | |||||
Inverse primary |