The color of your socks should coordinate with your slacks. If you are wearing black slacks, wear black socks. Brown socks are a smart choice to wear with brown slacks.
Do not wear white socks in a professional setting. White socks are only appropriately worn with white slacks or athletic apparel.
Also, make sure your socks are long enough so your skin cannot be seen when sitting or crossing your legs.