You did not have a risk. Even with blood on the condom and at the base of your penis. The tip of your penis was covered which is all that matters. The HIV virus is fragile and is inactivated with air. So, as the washing happened, it would not be active. HIV transmission occurs inside the body through either unprotected vaginal or anal penetrating sex or sharing of IV drug needles. So, no risk.