My middle finger is swollen, hardened, purple & red in center between middle finger joints, painful when bent and all occurred in the last 40 min?

How this happen. Is there a history of truama to the finger if that the case you should have to check it out.
See a doctor. This could be anything. From a simple sprain to an infection. You should be evaluated by your primary care physician, orthopedic surgeon, or hand surgeon.