The Janus kinase (JAK)-signal transducer and activator of transcription (STAT) pathway mediates many cytokine and growth factor signals. Tyrosine kinase 2 (TYK2), one of the members of this pathway and the first described member of the JAK family. TYK2 associates with inflammatory and autoimmune diseases, cancer and diabetes. Here, we present novel compounds as selective inhibitors of the canonical kinase domain of TYK2 enzyme. These compounds were rationally designed and synthesized with appropriate reactions. Molecular modeling techniques were used to design and optimize the candidates for TYK2 inhibition and to determine the estimated binding orientations of them inside JAKs. Designed compounds potently inhibited TYK2 with good selectivity against other JAKs as determined by in vitro assays. In order to verify its selectivity properties, compound A8 was tested against 58 human kinases (KinaseProfiler™ assay). The effects of the selected seven compounds on the protein levels of members of the JAK/STAT family were also detected in THP-1 monocytes although the basal level of these proteins is poorly detectable. Therefore, their expression was induced by lipopolysaccharide treatment and compounds A8, A15, A18, and A19 were found to be potent inhibitors of the TYK2 enzyme, (9.7 nM, 6.0 nM, 5.0 nM and 10.3 nM, respectively), and have high selectivity index for the JAK1, JAK2, and JAK3 enzymes. These findings suggest that triazolo[1,5-a]pyrimidinone derivatives may be lead compounds for developing potent TYK2-selective inhibitors targeting enzymes’ active site.