Diphenylamine may be used as a wet chemical test for the presence of the nitrate ion. In this test, a solution of diphenylamine and ammonium chloride in sulfuric acid is used. In the presence of nitrates, diphenylamine is oxidized, giving a blue coloration. This reaction has been used to test for organic nitrates as well, and has found use in gunshot residue kits detecting nitroglycerine and nitrocellulose.