fit like a glove
Be the right size and well suited; also, be in conformity with. For example, That position fits him like a glove. Tobias Smollett used this simile, rather incongruously, in Humphry Clinker (1771): "The boots ... fitted me like a glove." [Second half of 1700s] Also see to a T.