White collar refers to salaried professionals white
Blue collar refers to job with manual labour earning hourly wage.
This term was first used by Upton Sinclair in 1930s where the color of overalls or coveralls indicated occupational status:
blue for workers, brown for foremen, and white for professional staff such as engineers.