The documentation says that the tab bar image is usually 30×30, but I’ve found that the best size to setup the images is 48×32 pixels. This size still renders and gives you a bit more space.
The image is a PNG with transparency, only the mask is used. The UI renders the mask gray when unselected or blue/chrome when selected.