Methylthioninium chloride, commonly called methylene blue, is a salt used as a dye and as a medication. Methylene blue is a thiazine dye. As a medication, it is mainly used to treat methemoglobinemia by converting the ferric iron in hemoglobin to ferrous iron.