The invention relates to new methods of dyeing polymers. The methods include dispersing nanomaterials into the polymers to form polymer nanocompositres, and dyeing the polymer nanocomposites with a dye. The invention also relates to dyed polymers thus obtained and articles made from these dyed polymers