@C99,
If 2 and 3 are wearing the same color hat, then man 1 calls out the opposite hat.
If man one is silent, then man 2 knows that he and 3 are wearing different colored hats. If he sees white, he knows he's wearing black. If he sees black, he knows he's wearing white.