The rank cap is 40. Reaching it takes a long grind through the tiered progression, and at that point advancement shifts to the renown system rather than further ranks.
Renown is what you keep pushing after 40, and it is tied to the gear and abilities you unlock at the top end.