In this paper, the microscopic electronic structure and related optical properties of the 4H-SiC (111) surface doped with B, Al, Ga elements are explored by first principles calculation methods. Compared with Al- and Ga-doped systems, the formation energy of B-doped system is found to be very small, showing excellent stability. The bandgaps of doped system decrease obviously, and an indirect bandgap is observed in all the systems. Charge density difference maps show that the covalency is increased after B doping and the iconicity is increased after Al and Ga doping. Moreover, due to the sharp increase in static dielectric constant and dielectric loss, the B-doped system can be used as the candidate for absorbing materials. In addition, the increase in the peak value of the absorption and reflectivity makes the doped systems more promising in the development of solar cells.