The ESP32 output drive is pretty good and well above 3v when driving a 15mA load.I doubt the 3.3V powered processor can produce exactly 3.3V when loaded by the transistor's base current. The calculation for the series base resistor must allow for the voltage drop.