The optical Hall conductivity and the polar Kerr angle are calculated as functions of temperature for a two-dimensional chiral px + ipy superconductor, where the time-reversal symmetry is spontaneously broken. The theoretical estimate for the polar Kerr angle agrees by the order of magnitude with the recent experimental measurement in Sr2RuO4 by Xia et al. [PRL 97, 167002 (2006)]. The theory predicts that the Kerr angle is proportional to the square of the superconducting energy gap and is inversely proportional to the cube of frequency, which can be verified experimentally.