Nail question ?

Does anyone know what this is. I don’t remember doing anything or hitting my finger. I took my nail off because I thought it was a fungus but idk now it just looks like a little bruise…any help is greatly appreciated