Formalin pigment forms due to the interaction between formaldehyde and blood. When tissues containing blood are fixed in formalin, especially if the formalin is acidic (pH below 7), the formaldehyde reacts with hemoglobin to produce this pigment. This is more likely to occur when the fixation process is prolonged or if the formalin solution is not adequately buffered.