This is not the case in Islam, where modesty is seen as a sign of respect for oneself and others.
Its purpose is to protect the society as a whole and promote modest dressing and behaviour.
We begin with the conditions of hijab for a woman in public and amongst non-mahram men.
As long as these conditions are fulfilled a woman may wear whatever she pleases. It should not be a garment worn because of vanity or to gain popularity or fame.
The female companions were known to wear black and other dark colours but other colours are permissible; a woman must not however wear colourful clothes because of vanity.
Men’s Dress code Say to the believing men that they should lower their gaze and protect their private parts (from sins). And Allah is well acquainted with all that they do.(Quran ) Although they are sometimes overlooked or not well understood there are conditions of dress code for men as well.