Blockage of the light can be a positive. Some locations use floating black plastic spheres to achieve this goal.
Veritasium video about Los Angeles' reservoir black spheres project. They used black because
- The goal was light-blocking more than anything else; black worked best
- The black pigment held up to the environment (especially UV degradation) better than anything else they tried
I expect the second point was the most important thing. Black plastic is very stable.
Note, most aquatic wildlife benefits from shade, even where they depend on an algae-rooted food chain.