The chemical reactions and pathways involving chlorinated hydrocarbons, any hydrocarbon with one or more chlorine atoms attached to it.