A method of producing an ophthalmic lens having a component embedded in the ophthalmic lens, comprising the steps of: mating a first male mold with a first female mold with a first ophthalmic lens material injected therein, and subjecting the first ophthalmic lens material to a first copolymerization reaction to form a first layer of the ophthalmic lens on a concave forming surface of said first female mold, wherein said first male mold has a convex forming surface having a protrusion thereon conforming to the shape of the component within the ophthalmic lens, and said first female mold has the concave forming surface corresponding to said first male mold; separating said first male mold from said first female mold, placing said component in a recess in said first layer of the ophthalmic lens that corresponds to said protrusion, and injecting a second ophthalmic lens material onto the concave forming surface of said first female mold; mating a second male mold with said first female mold with said second ophthalmic lens material injected therein, said second male mold having a convex forming surface corresponding to said first female mold, and subjecting said second ophthalmic lens material to a second copolymerization reaction to form a second layer of the ophthalmic lens over the concave forming surface of said first female mold; and separating said second male mold from said first female mold to obtain the ophthalmic lens having said component embedded between said second layer and the first layer, wherein the ophthalmic lens is a contact lens, characterized in that the component is located outside the optical zone and positioned such that the center of the component is located at the edge part of the surface of the first layer at 1mm to 5mm from an outer edge of the formed ophthalmic lens. mating a first male mold with a first female mold with a first ophthalmic lens material injected therein, and subjecting the first ophthalmic lens material to a first copolymerization reaction to form a first layer of the ophthalmic lens on a concave forming surface of said first female mold, wherein said first male mold has a convex forming surface having a protrusion thereon conforming to the shape of the component within the ophthalmic lens, and said first female mold has the concave forming surface corresponding to said first male mold; separating said first male mold from said first female mold, placing said component in a recess in said first layer of the ophthalmic lens that corresponds to said protrusion, and injecting a second ophthalmic lens material onto the concave forming surface of said first female mold; mating a second male mold with said first female mold with said second ophthalmic lens material injected therein, said second male mold having a convex forming surface corresponding to said first female mold, and subjecting said second ophthalmic lens material to a second copolymerization reaction to form a second layer of the ophthalmic lens over the concave forming surface of said first female mold; and separating said second male mold from said first female mold to obtain the ophthalmic lens having said component embedded between said second layer and the first layer,