What type of lugnut do I need for aftermarket rims

You asked what type of lug nut to use but you didn’t buy any lug nuts.

The hex size on the spline socket has nothing to do with the spline nut diameter. The spline sockets usually are stepped with both 19 and 21 mm hex sizes so spare tire wrenches of both sizes will work.