The code has no limits.
That said, some customer specs will place limits on the hub thickness. I have seen specs that state requirements such as: hub thickness to shell thickness ratio shall not exceed 3:1. For vessels in cyclic service they shall not exceed 2:1. This is just an example...