Under limited circumstances in which quantization (and repacking of binary) is the only compression algorithm, then the compression ratio approaches the number of bits in the original pixel, divided by the number of bits in the quantized pixel.
If the number of quantization states is not a power of 2 (e.g., you quantize to 50 shades), then in the limit use log2 of the number of quantization states, provided you are usual optimal packing (but you would normally use arithmetic encoding instead in such a situation; it makes the calculations much easier.) A less efficient packing that is much easier to process would use ceil(log2(num_quantization_states)) -- e.g., ceil(log2(50)) bits per pixel.