Un-equip the hat of the character you like the most. Sell all other hats you have. Then, go to the hatless character's equipment screen and select "Optimum". Sometimes a random item (usually a Genji Glove) will be equipped as a hat, and boosts defense up to 255.