When the sun comes out, the sunglasses go on.

Sunglasses can offer your eyes vital protection from the harmful rays and they can also help reduce the glare of the sunshine while you are driving.

But is it legal to wear them while behind the wheel? The answer is not as straightforward as you might expect.

Rule 237 of the Highway Code states that drivers must slow down or pull over if dazzled by bright sunlight - so if you don't, and you're not wearing sunglasses to protect you from the glare then you could be convicted of careless driving.

The offence means an on-the-spot fine of £100 and up to three penalty points on your licence - or you could go to court and face a fine of up to £2,500 and nine penalty points the Plymouth Herald reports.

Sunglasses
Sunglasses

But it is also illegal to wear some types of sunglasses while driving.

Sunglasses are divided into four categories based on how much light they filter out.

Most sunglasses will be category two - meaning they filter between 18 and 43 per cent of light and are suitable for driving.

But if you have category 4 sunglasses - which let less than eight per cent of light through - they are illegal when driving.

In the UK sunglasses must be labelled and show the filter category number and category 4 should be labelled 'not suitable for driving and road use'.

Variable tint lens sunglasses are also not suitable for driving. The tint on these glasses becomes darker when exposed to sunlight, but modern car windscreen glass filters out UV rays and means they won't work.

According to the AA: "Filter category 4 lenses only transmit between 3 per cent and 8 per cent of light and are not suitable for driving at any time.