Vaginal discharge

I wore the same pair of panties 3 days in a row and now ive got rlly dark discharge (dark brown/blood colour) and the skin around my vagina is very sore and itchy what is this and how can I fix it? Also did it happen because of my panties