Black nails are normally harmless, and will usually go away on their own

Yellow nails could be a sign of infection
Blackened and healthy nails – Center