Early diagnosis and treatment of the root cause is essential ... A vitamin B12 deficiency can cause bluish discoloration of the nails or blue-black discoloration with darker longitudinal streaks ...