Synthetic melanogenesis, using epinephrine and other melanin precursors, within the matrix of hydrophilic polymers and copolymers of 2-hydroxyethyl methacrylate resulted in hydrogels able to absorb ultraviolet and visible radiation. This significantly enhances their value as materials for extraocular (contact lenses) or intraocular (artificial crystalline lenses) devices that should protect the retina of aphakic patients from potential damage induced by light. The two-phase morphology of melanized hydrogels, as investigated by TEM, revealed a fine structure that is possibly indicative of a true sequential interpenetrating polymer network. Their biocompatibility was evaluated by a set of different assays involving human choroidal fibroblasts. No cytotoxicity was found in the aqueous extracts of materials. By using an assay with cells and polymers embedded in a collagen gel, a short-range toxic effect was detected, presumably caused by melanin itself. However, in vivo experiments in animal eyes with melanized hydrogel intraocular lenses did not reveal any toxic reaction.