In the Lassaigne's test for the detection of nitrogen in the organic compound, the blue coloured compound formed is:
Carbon and nitrogen present in the organic compound on fusion with sodium metal gives sodium cyanide (NaCN) soluble in water.
This is converted into sodium ferrocyanide by the addition of sufficient quantity of ferrous sulphate.
Ferric ions generated during the process react with ferrocyanide to form prussian blue precipitate of ferric ferrocyanide.
Na+C+N⟶NaCN
6NaCN+FeSO4⟶Na4[Fe(CN)6]sodiumferrocyanide+Na2SO4
Na4[Fe(CN)6]+Fe+3⟶Fe4[Fe(CN)6]3Fericferrocyanide