Can you solve this pier puzzle?

OK I love puzzles, I knew that one...

Here's another : 3 explorers are captured by a tribe of vicious man-eating mathematician savages.
They are tied to 3 poles, facing the same direction. So the first explorer sees nothing, the 2nd explorer sees the first one, and the 3rd explorer sees both other explorers.
The tribe will put a hat on each explorer's head. They won't be able to see the color of their own hat.
There are 3 red hats, and 2 blue hats (the 2 remaining hats will remain hidden).
If an explorer manages to know the color of his hat (and prove it !!), he is freed. Otherwise he will be part of the next dinner.
If the hats are randomly distributed, which explorer has the highest chance to survive ?
Have fun !