Questions & Answers about Il contrario di “aperto” è “chiuso”.
Il is the masculine singular definite article, meaning the.
In Il contrario di aperto è chiuso, contrario is a noun meaning opposite, so Italian normally uses the article: il contrario = the opposite.
You usually would not say just Contrario di aperto... in normal Italian. The article sounds natural and correct here.