"Then Jesus spoke to them again, saying, 'I am the light of the world. He who follows Me shall not walk in darkness, but have the light of life.'" John 8.12
Walking in the Light is living with a clear conscience, detoxified of any impurity of this evil world. It is to live at peace with oneself and especially with the Holy Spirit.
Living in darkness is to be subject to the immorality imposed by the corrupting society.