Yes this is likely a deep bruise
or in medical terms we call a haematoma
. It is a common problem when you injury
your shin. The swelling can persist for a long time. The bruising around you ankle is likely from blood from the haemtoma tracking down your leg under gravity to the most dependant place.