The invention relates to a blue-light-resistant and anti-ultraviolet cosmetic raw material, a preparation method thereof and an application of the raw material. The cosmetic raw material comprises Arabian jasmine flower extracts, pale butterflybush flower extracts, bisabolol, glycerin, water, propylene glycol, titanium dioxide, cyclopentasiloxane, isohexadecane, polydimethylsiloxane, petrolatum, 1, 2-hexanediol, butyl methoxy dibenzoyl methane, Xanthan gum and the like. Plants containing natural active components are extracted to form an all-optical protection cosmetic, the cosmetic contains various nourishing components, is lightsome, breathable, fine, smooth, textured, soft, moist and nourished, can form a clear isolated layer on the surface of a skin and has excellent functions of resisting blue light, ultraviolet ray and oxidation and the like, interference of dust, haze, make-up products and the like to the skin is avoided, delicate skins are protected moment by moment, and all-weather protection is provided for the skin. The all-optical protection cosmetic is remarkable in effect, good in stability, convenient to use and high in universality and has wide application values.