The correct option is:
The teacher announced the winners of the contest: John, Mary, and Alex.
In this case, a colon is appropriate because it introduces a list of the winners. The other option, which uses a semicolon, is not correct in this context.