This invention provides compounds of formula I: wherein R1, R2, CY, Y1, Y2, X1, X2, and X3 are as described in the specification. The compounds are inhibitors of PI3K and are thus useful for treating proliferative, inflammatory, or cardiovascular disorders.