When a condom breaks and exposes the head of your penis, it is very obvious. You would not need lights on to notice a condom break like that, because you would only have the ring of the condom on your penis, and the rest would be in tatters.
Only the head of your penis needs to be covered to prevent HIV transmission, so as long as the condom did not burst WIDE open, you had no risk for HIV.