A closure device for releasably connecting two parts with each other includes a first closure member and a second closure member attachable to the first closure member and in a closed position is held on the first closure member. The second closure member has a rigid second locking protrusion, wherein the second locking protrusion can be brought into engagement with the first locking protrusion in an engagement direction and in the closed position engages the first locking protrusion in a positive locking manner. The first closure member includes a first magnetic member and the second closure member includes a second magnetic member, the first magnetic member and the second magnetic member being constituted to magnetically attract each other when the second closure member is attached to the first closure member for closing the closure device.