An optical element including a glass body is provided. The optical element includes a colored layer provided inside the glass body and positioned outside an effective aperture of the optical element. Coloring of the colored layer is a reduction pigment occurring in a glass component of the glass body. The colored layer suppresses occurrence of stray light and obtains sufficient light-shielding properties, so that a superior image quality can be achieved.