A novel image encryption algorithm employing triple chaotic maps has been developed to address the shortcomings of existing methods in terms of security and efficiency. The algorithm leverages the interconnectivity of color channels in images, using distinct keys to disrupt pixel correlations within each channel. The three chaotic maps utilized URUK, WAM, and Nahrain to generate two sets of keys. The first set is used to shuffle pixel positions, creating scrambled channels. Subsequently, the second set is applied to diffuse these scrambled channels independently. A gray wolf optimization (GWO) algorithm is then employed to further optimize the shuffling process, minimizing pixel correlations and enhancing security. The triple chaotic maps of varying orders contribute to the unpredictability and robustness of the cipher image. A comprehensive security analysis, including entropy, correlation coefficients, and attack resistance, demonstrates the superior performance of the proposed method compared to existing image encryption algorithms