When I put my measurements into Canyon's PPS I was coming out needing a small.
Taking the dimensions from my current bike it was much nearer to a medium than a small.
I decided to give Canyon a ring and get there advice and was told it was medium I needed, so if I was you I would give them a ring and see what they have got to say.
I will only know how good the advice was when it turns up !
FYI I'm 5ft 10in with an inseam of 32 1/2in