For a project, I use an optocoupler to detect 230V/50Hz AC on a line - if a light switch connected to mains is pressed.
For my calculation, I use 240V as a maximum AC voltage. It will limit the current to 1.2mA for the LEDs of the optocoupler.
My board has a minimum trace distance of 3mm for all traces, except the distance of the pads between the optocoupler:
The shown distance (yellow) is 1.4mm.
I assume, there is only a voltage of 1.4V across these pins, therefore the distance would be enough. Is this correct?