Dogs are not afraid of any specific color.  This behavior might stem from some other experience in their past with the object that you are showing to them (instead of its color). Many people have started using red water to keep stray dogs at bay. Mostl likely the principle at work here is that the dogs are afraid of the water itself, not its color.