Blue foam at the top of a protein skimmer is typically caused by dissolved metals, particularly copper. Copper can react with oxygen to form copper oxide, a blue-green compound that becomes trapped in the skimmer foam.
In some cases, certain organic matter such as lipids or proteins can also produce blue-colored compounds when exposed to oxygen, though copper is the most common cause.
Copper may enter aquarium water from metal fixtures, copper-based medications, or tap water. Elevated copper levels can harm fish and corals, so it is important to monitor copper and take steps to reduce it if necessary.