I would get medium for the length, since I am the same height but with a 36 waist.