We are not owner of our body parts to handle freely. So it is unlawful to donate blood or body parts. But, if someone donated blood to save the life of a near relative, it is allowable.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.