When soap is dissolved in water, the solution is alkaline in nature due to the formation of alkali NaOH or KOH. The solution changes the colour of red litmus to blue.