S90: Superficial injury of ankle and foot

S90.2: Contusion of toe(s) with damage to nail

Bruising something can make the affected areas become swollen and sore. Sometimes black spots form. Usually there isn’t any open injury on skin with a bruise. In your case, one or more of your toenails is also affected by the bruising.