16 x 16 RGB LED matrix

According to my math 16 x 16 is only 256

Try the maths again.
While you only have 256 packages each one has a red, a green and a blue LED in them so as far as the control and drive is concerned there is 768 individual LEDs.