A blue toenail is usually caused by a fresh bruise immediately after an injury and appears blue to purple. Over time, the clotted blood darkens, making the nail look black. Both color changes are stages of the same process and result from physical trauma.