We study the plurisubharmonic envelopes of functions in the setting of domains in \(\mathbb C^n\). In particular we prove a complex analogue of a result of De Philippis and Figalli concerning the optimal regularity of such envelopes in smooth strictly pseudoconvex domains.