The short answer to whether you can connect an LED to 230V AC is yes, but never directly. If you connect raw LED leads to a mains socket, the component will instantly destruct in a flash of light and smoke. To make this work safely, you must introduce specific circuitry—such as drivers, rectifiers,