The use of the preposition "against" in the sentence you mentioned suggests that the color of the subject in question provides a protective measure against the winter snow, rather than blending in or being associated with the snow.
Using "with" would suggest a more general association or connection between the color and the winter snow, without necessarily implying any particular function.
Using "in" would suggest that the subject is actually located within or surrounded by the winter snow, which may not necessarily be the case.
Therefore, "against" is used to convey the idea that the color is a defense mechanism that helps the subject to blend in and avoid being easily spotted by predators in the snowy environment.