The primary contributor to the blue colour of Uranus and Neptune is the absorption of red light by atmospheric methane. Methane molecules in the atmosphere of these planets absorb red light more efficiently than other colours, giving them a blue appearance.