The sentence refers to a state in the past, indicated by 'last week'. The verb 'be' needs to be in its past simple form.
It was cold last week.