Colours

Choose the right colour role for the job, and learn how to read the colour tokens.

Status colours tell the user the state of something. Each one has a single meaning, so use the one that matches the message and use it only for status.

For all status colours

  • Add an icon or text as well as the colour, so the status is clear to users who cannot tell the colours apart.
  • Use a status colour only when it carries the status. For decoration or emphasis, use Neutral, Primary or Secondary.
  • In charts, use Error, Warning and Success for fills, lines, text labels and bands where the colour is the status. Do not use them for series that are not a status, and do not mix them with Extended colours in one chart. See Data visualisation colours for the tokens.

Error

Error is a shade of red. It communicates something negative: a problem the user needs to fix, or an action that is dangerous or cannot be undone.

Error colour role example.

When to use

  • Something has failed or an input is wrong, for example a field that does not pass validation.
  • The action is hard to undo, for example deleting a profile.
  • A value has gone down or something is overdue, for example a decrease in stock or an unpaid bill.

When not to use

  • Something might become a problem but has not failed yet. Use Warning instead.
  • The aim is to draw the eye to an element that is not a negative status.

Colour tokens

These are the Error tokens, with their values for the Maersk brand in the light and dark themes.

UseLightDark
Weak border
brand_appearance_error_weak_border-color
--mds_brand_appearance_error_weak_border-color
rgb(233,178,183)
#E9B2B7
rgb(104, 28, 37)
#681C25
Border
brand_appearance_error_default_border-color
--mds_brand_appearance_error_default_border-color
rgb(184,0,18)
#B80012
rgb(255, 162, 166)
#FFA2A6
Weakest background
brand_appearance_error_weakest_background-color
--mds_brand_appearance_error_weakest_background-color
rgb(254,242,240)
#FEF2F0
rgb(66, 1, 1)
#420101
Weak background
brand_appearance_error_weak_background-color
--mds_brand_appearance_error_weak_background-color
rgb(252,221,224)
#FCDDE0
rgb(80, 23, 33)
#501721
Background
brand_appearance_error_default_background-color
--mds_brand_appearance_error_default_background-color
rgb(184,0,18)
#B80012
rgb(255, 162, 166)
#FFA2A6
Weakest on background
brand_appearance_error_weakest_on-background-color
--mds_brand_appearance_error_weakest_on-background-color
rgb(55,0,5)
#370005
rgb(247, 229, 230)
#F7E5E6
Weak on background
brand_appearance_error_weak_on-background-color
--mds_brand_appearance_error_weak_on-background-color
rgb(55,0,5)
#370005
rgb(247, 229, 230)
#F7E5E6
On background
brand_appearance_error_default_on-background-color
--mds_brand_appearance_error_default_on-background-color
rgb(255,255,255)
#FFFFFF
rgb(20, 20, 20)
#141414
Text
brand_appearance_error_default_text-color
--mds_brand_appearance_error_default_text-color
rgb(184,0,18)
#B80012
rgb(255, 162, 166)
#FFA2A6

To understand what terms such as border, background, on-background, text, weak and strong mean in a token name, see Reading the colour tokens .

Success

Success is a shade of green. It communicates something positive: an action that worked, or a state that is good.

Success colour role example.

When to use

  • An action has worked, for example a file uploaded or a profile updated.
  • Something is in a good state, for example an online or available status, or numbers that have gone up.

When not to use

  • The message is helpful but is not an outcome. Use Info instead.
  • The element is a button or control the user acts on, not a result. Use Primary instead.

Colour tokens

These are the Success tokens, with their values for the Maersk brand in the light and dark themes.

UseLightDark
Weak border
brand_appearance_success_weak_border-color
--mds_brand_appearance_success_weak_border-color
rgb(197,229,194)
#C5E5C2
rgb(27, 70, 23)
#1B4617
Border
brand_appearance_success_default_border-color
--mds_brand_appearance_success_default_border-color
rgb(64,171,53)
#40AB35
rgb(127, 209, 117)
#7FD175
Weakest background
brand_appearance_success_weakest_background-color
--mds_brand_appearance_success_weakest_background-color
rgb(243,250,229)
#F3FAE5
rgb(15, 31, 0)
#0F1F00
Weak background
brand_appearance_success_weak_background-color
--mds_brand_appearance_success_weak_background-color
rgb(220,246,217)
#DCF6D9
rgb(18, 51, 17)
#123311
Background
brand_appearance_success_default_background-color
--mds_brand_appearance_success_default_background-color
rgb(64,171,53)
#40AB35
rgb(127, 209, 117)
#7FD175
Weakest on background
brand_appearance_success_weakest_on-background-color
--mds_brand_appearance_success_weakest_on-background-color
rgb(19,51,16)
#133310
rgb(216, 242, 213)
#D8F2D5
Weak on background
brand_appearance_success_weak_on-background-color
--mds_brand_appearance_success_weak_on-background-color
rgb(19,51,16)
#133310
rgb(216, 242, 213)
#D8F2D5
On background
brand_appearance_success_default_on-background-color
--mds_brand_appearance_success_default_on-background-color
rgb(20,20,20)
#141414
rgb(20, 20, 20)
#141414
Text
brand_appearance_success_default_text-color
--mds_brand_appearance_success_default_text-color
rgb(50,133,41)
#328529
rgb(127, 209, 117)
#7FD175

To understand what terms such as border, background, on-background, text, weak and strong mean in a token name, see Reading the colour tokens .

Warning

Warning is a shade of yellow. It communicates a potential problem: something that needs attention but has not failed.

Warning colour role example.

When to use

  • Something might go wrong if the user does nothing, for example a lost connection to the server or payment details that must be updated by a date.
  • Something is not finished or not active, for example a pending status or an away profile.

When not to use

  • The problem has already happened. Use Error instead.
  • There is no risk to the user. Use Info instead.

Colour tokens

These are the Warning tokens, with their values for the Maersk brand in the light and dark themes.

UseLightDark
Weak border
brand_appearance_warning_weak_border-color
--mds_brand_appearance_warning_weak_border-color
rgb(255,235,168)
#FFEBA8
rgb(83, 68, 19)
#534413
Border
brand_appearance_warning_default_border-color
--mds_brand_appearance_warning_default_border-color
rgb(255,208,41)
#FFD029
rgb(242, 205, 89)
#F2CD59
Weakest background
brand_appearance_warning_weakest_background-color
--mds_brand_appearance_warning_weakest_background-color
rgb(255,247,229)
#FFF7E5
rgb(51, 20, 0)
#331400
Weak background
brand_appearance_warning_weak_background-color
--mds_brand_appearance_warning_weak_background-color
rgb(255,241,194)
#FFF1C2
rgb(63, 51, 16)
#3F3310
Background
brand_appearance_warning_default_background-color
--mds_brand_appearance_warning_default_background-color
rgb(255,208,41)
#FFD029
rgb(242, 205, 89)
#F2CD59
Weakest on background
brand_appearance_warning_weakest_on-background-color
--mds_brand_appearance_warning_weakest_on-background-color
rgb(77,62,12)
#4D3E0C
rgb(253, 237, 186)
#FDEDBA
Weak on background
brand_appearance_warning_weak_on-background-color
--mds_brand_appearance_warning_weak_on-background-color
rgb(77,62,12)
#4D3E0C
rgb(253, 237, 186)
#FDEDBA
On background
brand_appearance_warning_default_on-background-color
--mds_brand_appearance_warning_default_on-background-color
rgb(20,20,20)
#141414
rgb(20, 20, 20)
#141414
Text
brand_appearance_warning_default_text-color
--mds_brand_appearance_warning_default_text-color
rgb(128,104,20)
#806814
rgb(242, 205, 89)
#F2CD59

To understand what terms such as border, background, on-background, text, weak and strong mean in a token name, see Reading the colour tokens .

Info

Info is a shade of blue. It helps and informs the user, with no judgement about good or bad.

Info colour role example.

When to use

  • The user may benefit from knowing something, for example a related feature or a new version that is available.
  • The state is neither good nor bad, for example that the user is on a free plan.

When not to use

  • The user must act, or something is at risk. Use Warning or Error instead.
  • The element is the action the user should take. Use Primary instead.

Colour tokens

These are the Info tokens, with their values for the Maersk brand in the light and dark themes.

UseLightDark
Weak border
brand_appearance_info_weak_border-color
--mds_brand_appearance_info_weak_border-color
rgb(161,209,232)
#A1D1E8
rgb(0,62,98)
#003E62
Border
brand_appearance_info_default_border-color
--mds_brand_appearance_info_default_border-color
rgb(0,89,134)
#005986
rgb(22,134,189)
#1686BD
Weakest background
brand_appearance_info_weakest_background-color
--mds_brand_appearance_info_weakest_background-color
rgb(237,248,252)
#EDF8FC
rgb(2,25,41)
#021929
Weak background
brand_appearance_info_weak_background-color
--mds_brand_appearance_info_weak_background-color
rgb(226,243,251)
#E2F3FB
rgb(0,36,61)
#00243D
Background
brand_appearance_info_default_background-color
--mds_brand_appearance_info_default_background-color
rgb(0,89,134)
#005986
rgb(0,89,134)
#005986
Weakest on background
brand_appearance_info_weakest_on-background-color
--mds_brand_appearance_info_weakest_on-background-color
rgb(0,36,61)
#00243D
rgb(195,228,243)
#C3E4F3
Weak on background
brand_appearance_info_weak_on-background-color
--mds_brand_appearance_info_weak_on-background-color
rgb(0,36,61)
#00243D
rgb(195,228,243)
#C3E4F3
On background
brand_appearance_info_default_on-background-color
--mds_brand_appearance_info_default_on-background-color
rgb(255,255,255)
#FFFFFF
rgb(255,255,255)
#FFFFFF
Text
brand_appearance_info_default_text-color
--mds_brand_appearance_info_default_text-color
rgb(0,89,134)
#005986
rgb(22,134,189)
#1686BD

To understand what terms such as border, background, on-background, text, weak and strong mean in a token name, see Reading the colour tokens .

See also