Colour

Confluence provides a range of colours designed to be accessed, understood, and used by all people regardless of their age, background, or ability. The colours referenced in the system are a mix of primary brand colours, secondary brand colours, status colours, and shades.

Primary colours

White is used frequently as a background and flood colour while our primary blue is reserved for emphasis in the form of primary buttons and links.

$primary: #123985

$white: #FFFFFF

Secondary colours

Secondary colours should play a supporting role and be used to highlight, contrast, and complement the primary colours.

$secondary: #00669B

$teal: #2ED9C3

$purple: #6460AA

Status colours

Status colours are reserved for communicating statuses in the user interface and may be used on badges, icons, form validation and alerts. They may also be used in branding components (e.g. green for golf courses) including photography, illustrations, logos, and PDFs.

Danger

Use red in error messages and error states to highlight important information or actions that are potentially disruptive.

$danger: #CE2334

Warning

Yellow should only be used to communicate warning messages or that progress may be disrupted if an action is taken.

$warning: #FFB71B

Success

Green should only be used to communicate success and celebrate progress in the interface.

$success: #00AB4E

Information

Light blue highlights information that might be useful to a user.

$info: #00BFDF

Neutral colours

Neutral colours are used to complement our brand colours and in scenarios where attention shouldn’t be drawn to a particular component. Use $gray-100 through $gray-900 for these colours.

$gray-100: #F8F9FA

$gray-200: #E9ECEF

$gray-300: #DEE2E6

$gray-400: #CED4DA

$gray-500: #ADB5BD

$gray-600: #6C757D

$gray-700: #495057

$gray-800: #343A40

$gray-900: #212529

Accessibility

The contrast between the colour of an element’s text and its background should be high enough that low-vision users can read it. City of Winnipeg websites must pass Level AA WCAG Colour Contrast Requirements. Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text, and a contrast ratio of at least 3:1 for graphics and user interface components (such as form input borders). Large text is defined as 14 point (typically 18.66px) and bold or larger, or 18 point (typically 24px) or larger.

If you aren’t sure about a specific colour combination, run it through a colour contrast checker, such as WebAIM’s colour contrast checker.

PASS
PASS
FAIL
FAIL
FAIL
FAIL
PASS
PASS
PASS
PASS
PASS
FAIL
FAIL
FAIL
PASS
PASS
FAIL
FAIL
PASS
PASS
PASS
PASS
PASS
FAIL
PASS
PASS
PASS
FAIL
FAIL
FAIL
PASS
PASS
PASS
FAIL
PASS
PASS

Bootstrap’s colour contrast function

One additional function included in Bootstrap is the colour contrast function, color-yiq. It utilizes the YIQ colour space to automatically return a light (#fff) or dark (#111) contrast colour based on the specified base colour. This function is especially useful for mixins or loops where you’re generating multiple classes.

For example, to generate gray colour swatches:

@each $color, $value in $grays {
  .swatch-#{$color} {
    color: color-yiq($value);
  }
}
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS
PASS


It can also be used for one-off contrast needs:

.custom-element {
  color: color-yiq(#000); // returns `color: #fff`
}

You can also specify a base color with our color map functions:

.custom-element {
  color: color-yiq(theme-color("dark")); // returns `color: #fff`
}

It is recommended to also perform other checks to ensure the contrast passes.