The present invention related to deuterated diaminopyrimidine compounds and pharmaceutical compositions comprising such compounds. In particular, disclosed are the deuterated diaminopyrimidine compounds shown as formula (I), and the pharmaceutical compositions comprising such compounds or crystal form, pharmaceutically acceptable salts, hydrates or solvates thereof. The compounds of the present invention can be used for treating and/or preventing protein kinase-associated diseases, such as cell proliferative disease, cancer, immune disease and the like.