If you are wearing black formal pants, it’s perfectly fine to wear a pair of brown shoes with them. You must match your belt color with your shoes to maintain the harmony of the outfit.