The anhydrous (without water) blue form can be made by reacting cobalt with chlorine. The hydrated (with water) red form can be made by reacting cobalt(II) oxide or cobalt(II) hydroxide with hydrochloric acid. 