OUCH! I had my whole foot turn purple and swell up when I did something similar and it wasn't broken. But, my mom did that and hers was broken and never healed right.
I would have it looked at, sometimes they can help or have you tape them together or something. If it's broken and doesn't heal right, it may be a nuisance for the rest of your life.