Using BC327 instead of BC337 but not working as expected?

The only additional circuitry the 74HC240 needs is to connect the Vcc and ground pins, put a 0.1uF decoupling cap between them, and also connect the 2 enable inputs to ground. It's an octal buffer, so 2 of them will handle all 16 outputs from the TLC5940.