A compound of formula: or pharmaceutically acceptable salts, wherein X is CH or N; R 11 is C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 hydroxyalkyl, C 1 -C 6 haloalkoxy, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 12 is H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 hydroxyalkyl, C 1 -C 6 haloalkoxy, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 14 and R 13 taken together with the atoms to which they are attached form a 5-, 6-, or 7-membered heterocyclyl group optionally substituted with one to four R 20; R 15, R 16, and R 17 are independently H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 alkoxy, halogen, hydroxyl, aryl, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 18 and R 19 are each independently H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkoxy, C 1 -C 6 hydroxyalkyl, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20, R 20 is halogen, -CN, -OH, -NO 2, -NH 2, -NH(C 1 -C 6 alkyl), -N(C 1 -C 6 alkyl) 2, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkoxy, - CO 2 H, -CO 2 (C 1 -C 6 alkyl), -SO 2 (C 1 -C 6 alkyl), -CONH 2, -CONH(C 1 -C 6 alkyl), -CON(C 1 -C 6 alkyl) 2, -CON OH, -NHCO(C 1 -C 6 alkyl), or -NHCO 2 (C 1 -C 6 alkyl); and X is CH or N; R 11 is C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 hydroxyalkyl, C 1 -C 6 haloalkoxy, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 12 is H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 hydroxyalkyl, C 1 -C 6 haloalkoxy, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 14 and R 13 taken together with the atoms to which they are attached form a 5-, 6-, or 7-membered heterocyclyl group optionally substituted with one to four R 20; R 15, R 16, and R 17 are independently H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 alkoxy, halogen, hydroxyl, aryl, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20; R 18 and R 19 are each independently H, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkoxy, C 1 -C 6 hydroxyalkyl, halogen, -NO 2, -CN, -OR 15, -SR 15, -C R 15, -NHC R 15, -C OR 15, -OC R 15, -NR 16 R 17, -C NR 16 R 17, -NHR 15 C NR 16 R 17, -SO 2 NR 16 R 17, alkylaryl, cycloalkyl, heterocyclyl, or heteroaryl, each being optionally substituted with one to four R 20, R 20 is halogen, -CN, -OH, -NO 2, -NH 2, -NH(C 1 -C 6 alkyl), -N(C 1 -C 6 alkyl) 2, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkyl, C 1 -C 6 alkoxy, C 1 -C 6 haloalkoxy, - CO 2 H, -CO 2 (C 1 -C 6 alkyl), -SO 2 (C 1 -C 6 alkyl), -CONH 2, -CONH(C 1 -C 6 alkyl), -CON(C 1 -C 6 alkyl) 2, -CON OH, -NHCO(C 1 -C 6 alkyl), or -NHCO 2 (C 1 -C 6 alkyl); and