More on anti-fouling?

This is something I’ve always wondered about and I’m hoping that maybe some of you ex-Navy guys can answer it. On most ships the antifouling seems to be red, but on carriers (at least the modern ones) it’s black. Why is that?