1.5mm x 40mm
But he didn't know the hardness.
Is that 40mm Inside Diameter (ID) or Outside (OD)? O-rings tend to be measured on ID. If its OD then subtract 3mm for ID.
But most devices tend to use AS/BS standard o-rings not metric.
The nearest would be 40mm ID 1.5mm Cross section (CS) -030 with 1.64inch ID (41 mm) and 1/16inch CS (1.78mm)
The nearest would be 40mm OD 1.5mm Cross section (CS) -029 with 1.489inch ID (37.82 mm) and 1/16inch CS (1.78mm)
The hardness would be 70, its a low-pressure seal and not very dynamic.