Blood under a nail is called a subungual hematoma. Rest the area, apply ice, and take over-the-counter pain medicine for a small subungual hematoma. See a healthcare provider if you have extreme pain ...