Hexagonal boron nitride has been found to host color centers that exhibit single-photon emission, but the microscopic origin of these emitters is unknown. We propose boron dangling bonds as the likely source of the observed single-photon emission around 2 eV. An optical transition where an electron is excited from a doubly occupied boron dangling bond to a localized B p_{z} state gives rise to a zero-phonon line of 2.06 eV and emission with a Huang-Rhys factor of 2.3. This transition is linearly polarized with the absorptive and emissive dipole aligned. Because of the energetic position of the states within the band gap, indirect excitation through the conduction band will occur for sufficiently large excitation energies, leading to the misalignment of the absorptive and emissive dipoles seen in experiment. Our calculations predict a singlet ground state and the existence of a metastable triplet state, in agreement with experiment.