An aqueous solution of CoCl2 on addition of excess of concentrated HCI turns blue due to formation of
CoCl2 is a weak Lewis acid, reacting with chloride ion to produce salt containing the tetrahedral [CoCl4]2- ion. CoCl2 is blue when anhydrous, and a deep magenta colour when hydrated, for this reason it is widely used as an indicator for water.