A black-and-blue nail (also called a black nail) is usually caused by sudden or repetitive injury to a toe. If your toe is black and blue but not injured, see your healthcare provider immediately.