Separate hue from lightness
Hue is the colour family, such as blue or red. Saturation describes its intensity in a given colour model. Lightness describes its position between dark and light. A muted yellow and a muted navy can still differ dramatically in lightness.
Read the wheel
Analogous colours are neighbours, complementary colours sit opposite each other, and a triadic combination takes three evenly spaced hues. Monochromatic schemes keep one hue and vary other properties. Different kinds of wheels can give different pairings, so use the same wheel throughout a digital project.
Make a relationship usable
Choose one hue to carry larger areas. Give secondary and accent colours less space. If two swatches still blur in a greyscale view, change their lightness and then test their contrast in context.