Hilchos Lashon Hara, chapter 3, section 6
Know: even if the lashon hara caused no harm at all to the person spoken about – for example, the listeners did not believe it – it is still lashon hara and needs atonement.
Even more: even if the speaker thought from the start that the story would not harm the person, it is still forbidden to say bad things about them.