Two BJT as Switch for 24V problem with LED always on
I think because at the base of your PNP, there is a 24 voltage supply connected to a much higher resistor than at the Emitter. You wont have a perfect voltage supply or components. If the voltage at the emitter doesn't get high enough it won't turn off the PNP. The voltage has to be equivalent or higher. Probe the Base to ground and the Emitter to ground to see if the base is high enough. Theoretically it should be, but with leakage and stuff it might not be.

I would suggest to get rid of the PNP and just control the LED with the NPN.