Oh my that is bizarre. I've never experienced it myself but I've known other people who have gotten blue nails before and its usually due to a blood flow problem or poor circulation. Do you have any problems with asthma or a cardiovascular condition? It can also be caused by raynauds phenomenon which usually is a reaction to cold. Some medications can cause it too, might be worth mentioning it to you doc if it continues.
Co-moderator for Multiple Sclerosis
Allow Healing Well to continue to help others, clink link for details