Toe blisters

My second toe on both feet are turning blue and definitely has a blister behind the nail. What should I do to recover quickly and what should I wear so prevent this from happening again?