It is not a width, it is a depth you are referring to. The rack rails need a rack that has both front and rear ear rails, that are a minimum of 570 mm apart.
The problem is if the cabinet is not deep enough you are likely to run into other problems like the chassis itself will not fit into place with enough clearance front and rear for cables etc.