Thanks for query.
It seems that you might have Varicose veins
Due to this problem there is impaired blood circulation in the legs causing blue appearance and swelling on the parts.
It is also possible that it might be Deep vein thrombosis
Consult vascular surgeon and take his opinion.
Ok and bye.