When an iron nail is dipped in a copper sulphate solution, iron (which is more reactive than copper) displaces copper from copper sulphate solution forming iron sulphate, which is green in colour.
CuSO4+Fe → FeSO4+Cu

Therefore, the blue colour of copper sulphate solution fades and green colour appears.