That number can vary, but most players should be in the 6-9% 3-bet range over the long term. Many peg the optimal 3-bet percentage at roughly 7% overall.
However, in today’s games, as more players are aware of the recommended 3-bet percentage from each position, if you 3-bet too frequently from the button or cutoff positions, you will get exploited. Some say you should 3-bet more in position than out of position, and many would agree it’s wise to skew your ranges slightly in this direction.