Premise: A red flag means that swimming is dangerous and a black flag means that no swimming is allowed.

Hypothesis: A red flag can indicate that the water is safe to swim in. 
Relation: contradiction