Color

Color Palettes

The Salesforce Color Palettes are essential for establishing a consistent visual language and user experience. By adhering to these palettes, designers and developers can ensure harmonious color usage, evoke appropriate emotions and reinforce brand recognition. Additionally, the palettes come equipped with accessibility guidelines, guaranteeing that chosen colors meet contrast requirements and are accessible to all users.

Our Palette

It’s important to understand where Salesforce color decisions come from, so you can better understand how to use them. Our guidelines provide detailed direction and cover most use cases. We have a large palette that’s broken down into sub-palettes, and those sub-palettes are associated with color patterns in our UI.

For example, we have a messaging palette where green is used to convey success, orange for warning, and red for error.

A graphic showing three messaging symbols, illustrating how Salesforce palettes are constructed with intention in order to convey important messages quickly.
Salesforce palettes are constructed with intention in order to convey important messages quickly.

We also have a sub-palette for standard object and action icons that allow for shared rules, provided by the color associations in our messaging palette. This icon palette is mostly driven by color contrast compliance, and within it are sub-palettes that relate to how the icon is being used.

Each sub-palette is constructed with intention, as all color decisions should be.

Primary Palette

Our primary palette is composed of colors from the blue in our logo, our action colors, and our messaging color patterns. The Salesforce Primary Palette is comprised of red (1), orange (2), green (3), blue (4), and Cloud blue (5) color patterns.

The  Salesforce Primary Palette, composed of red (1), orange (2), green (3), blue (4), and Cloud blue (5) color patterns.
The Salesforce Primary Palette

These colors are separated out from our larger palette because they carry important user associations across our experiences. Using them as our primary palette strengthens the impact of these visual patterns. To see all the color values available, see Global Color Styling Hooks.

Secondary Palette

Our secondary palette is made of colors that complement our primary color patterns. This color group is available for variety’s sake. Use these colors to add visual expression. The Salesforce Secondary Palette is composed of hot orange (1), yellow (2), teal (3), indigo (4), purple (5), violet (6), and pink (7) color patterns.

The  Salesforce Secondary Palette, composed of hot orange (1), yellow (2), teal (3), indigo (4), purple (5), violet (6), and pink (7) color patterns.
The Salesforce Secondary Palette

Colors from this secondary palette can be picked with confidence because they complement key visual patterns (like those assigned within the primary palette).

Neutrals Sub-Palette

Salesforce has guidelines for what purpose each neutral (or gray) tint serves and how to use them. These guidelines include when to use each, how to strike a balance, and general direction on these neutrals.

  • Use Neutral-10 (1) and Neutral-30 (2) as text colors, and use Neutral-50 (4) as placeholder text.
  • Neutral-40 (3) and Neutral-60 (5) are specific to a single use-case as background for standard object icons.
  • Use Neutral-50 (4) for visible boundaries of functional UI patterns, like our neutral border button, and for utility icons.
  • Use Neutral-80 (6) as a decorative UI for dividing lines and borders around non-functional UI, and for disabled states.
  • The primary background color is Neutral-100 or white (8). Neutral-95 (7) is also a background color, although it isn't used nearly as much as white.
  • The  Salesforce Neutrals Sub-Palette, comprised of the commonly used Neutral-10 (1), Neutral-20 (2), Neutral-50 (3), Neutral-90 (4), Neutral-95 (5), and Neutral-100 (7) color patterns.
    The Salesforce Neutrals Sub-Palette

    Iconography Palettes

    There are multiple palettes for iconography. Our iconography families include Object (Standard and Custom,) Action, Utility, and Doctype.

    A graphic showing what the Salesforce Iconography Palettes look like on examples of icons.
    The Salesforce Iconography Palettes shown through examples of icons.

    Per accessibility contrast guidelines, there’s a separation between functional items that are interactive or informational and decorative items that are non-essential to navigating the experience. Functional items must pass a 3:1 color contrast ratio, while decorative items aren’t required to pass contrast guidelines. For more information, see our Iconography Design Guidelines.

    Standard Object and Action Icons

    This is our Standard Object Icon palette. These colors meet compliance for color contrast. This palette combines colors from our Primary and Secondary palettes.

    A graphic showing what the Salesforce Standard Object and Action Icons Palette looks like.
    The Salesforce Standard Object and Action Icons Palette

    Use this color set with intent. Ideally, the colors used in any experience connect to current visual patterns for brand, core actions, and messaging. Keep your color experience simple and straightforward.

    Do maintain accessible color contrast
    Do maintain accessible color contrast
    Don’t use low contrast colors
    Don’t use low contrast colors

    Use only one color for icons across your experience. If you need variety, expand to other monochromatic colors within that hue. The icon’s image conveys its meaning, so using a different color with every icon is distracting and creates unintended color associations. Choose one color to be quickly identifiable as an icon across your whole experience, so users can find them easily in a full page.

    Utility Icons

    Utility Icons are simple, single-color glyphs that identify labels and actions across all user devices. They can be paired with text or used alone, have no background shape, and can be any color as long as they follow color-contrast accessibility guidelines.

    A graphic in white and dark gray, showing what the Salesforce Utility Icons look like.
    Salesforce Utility Icons

    Doctype Icons

    Doctype Icons are functional; they convey meaning beyond being decorative. These icons inform the user of what file format they represent, to improve scan-ability and navigation within an experience. The palette diverges from other iconography palettes because these icons have different styling requirements.

    A graphic showing what the colorful Salesforce Doctype Icons look like.
    Salesforce Doctype Icons

    Doctype icons are composed of functional and decorative items. In the example image, you can see that the background (1), text (2), and icon (3) colors are functional, while the folds (4) and shadows (5) are decorative.

    A graphic illustrating how Doctype icons can have both functional and decorative elements.
    Doctype icons have both functional and decorative elements.

    Messaging Palettes

    The messaging color family displays visual cues across a spectrum, from positive to negative. These colors are traditionally used on solid backgrounds, though they can also be used for highlighting content areas. Messaging is a subset color family used for messaging components, including Badges, Toast, and Popovers.

    These are the specific areas of use and their color associations.

  • Success— Green
  • Warning— Orange
  • Error— Red
  • Informational— Light gray
  • Offline— Dark gray
  • A graphic showing the Salesforce Messaging Palette in action, with icons.
    The Salesforce Messaging Palette

    Hover States

    Hover states occur when a user momentarily pauses with a cursor over a possible interaction.

    Do use a color step in the same hue for hover states
    Do use a color step in the same hue for hover states
    Don’t use different hues for hover states
    Don’t use different hues for hover states

    A majority of our hover states are 10 points or darker than the default state. We don’t support using different color hues for hover states.

  • Hover states should always be 10 points or darker on light UI than the default color.
  • Hover states should always be 10 points or lighter on dark UI than the default color.
  • In this example, the cursor also changes in the desktop space. Otherwise, this interaction looks like it’s only color. The default background button color uses Blue-50, therefore in this example, the hover background color is 10 points darker = Blue-40.

    A graphic that illustrates how hover states need to be 10 points darker or lighter, based on the background darkness or lightness.
    Hover states need to be 10 points darker or lighter, based on the background darkness or lightness.
    Do use cursor changes in the desktop space
    Do use cursor changes in the desktop space
    Don’t make an interaction solely based on color
    Don’t make an interaction solely based on color

    Focus States

    Focus states occur when a user highlights an object using a keyboard or voice. We use one global style for focus states: a blue outline focus indicator surrounding the focused box, visible in the example image.

    A graphic showing how a focus state occurs when a user highlights an object with a keyboard or their voice.
    Focus states occur when a user highlights an object with a keyboard or their voice.

    This “halo” is a visual indication of focus, also known as outline, provided by custom CSS or the user-agent default that outlines a component. In this example the blue outline surrounding the button is the halo, the indication of a focus state.

    Selected States

    Selected states occur when a user makes a deliberate interaction with an object to make a selection. We support single and multiselect components. The example image shows components with various styles of selected states. Blue-50 is a common color we use for select states.

    A graphic showing examples of (1) unselected, or default states and (2) selected states.
    Examples of various (1) default versus (2) selected states.

    Disabled States

    Disabled states occur to inform a user that the object can’t be interacted with. We can use certain colors to reduce possible user confusion of what can or can’t be interacted with, but disabled states still need to pass accessibility contrast ratio guidelines. Neutral-80 is a common color we use for disabled states. More information can be found in the Neutrals Sub-Palette section.

    A graphic showing examples of default states versus disabled states.
    Examples of default versus disabled states.

    Resources