Best NPN transistor to use for a 24v relay

2N2222A should work well with 390 or 470 Ω base resistor and a 5 volt Arduino, just be sure to get collector and emitter leads right.
https://media.digikey.com/pdf/Data%20Sheets/NXP%20PDFs/2N3904.pdf