Spinach darkens in airtight boxes due to a lack of oxygen, which promotes anaerobic respiration and the breakdown of chlorophyll, leading to discoloration.
Spinach, like other leafy greens, continues to respire even after it's harvested. When stored in an airtight container, the available oxygen is quickly used up. This forces the spinach to switch from aerobic respiration (using oxygen) to anaerobic respiration (without oxygen). Anaerobic respiration produces different byproducts than aerobic respiration. One significant consequence is the breakdown of chlorophyll, the pigment that gives spinach its green color. As chlorophyll degrades, other pigments, such as pheophytin, become more prominent, resulting in a darker, sometimes brownish, appearance. Furthermore, the lack of oxygen can also encourage the growth of certain microorganisms that contribute to spoilage and discoloration. Proper ventilation helps maintain oxygen levels, slowing down these processes and preserving the spinach's vibrant green color and freshness.
To keep spinach fresh and green for longer, store it in a container lined with a paper towel to absorb excess moisture, and leave the lid slightly ajar to allow for air circulation.