It is an on-going argument: Should a man’s socks match his shoes or his trousers? When it comes to selecting socks, look first to your tie. The sock color should relate to, but not match, your neckwear. For example, if your tie is blue red, choose burgundy socks. If the tie is olive, opt for brown socks. Navy socks are good with a blue tie.
If your tie was selected to complement your suit and your shoes to team with your trousers, the color of your socks should work with both your shoes and your trousers.
Consider your belt. It should match your shoes, or at least coordinate (brown shoes with cordovan belt; charcoal belt with black shoes)
Your pocket square should be similar in color to your tie, but not identical.
You can give yourself a break from all the mixing and matching and settle for a plain white shirt. It will look right no matter what other colors you are wearing.