Montelukast sodium (MLK) and Levocetirizine dihydrochloride (LCZ) are widely prescribed medications with promising therapeutic potential against COVID-19. However, existing analytical methods for their quantification are unsustainable, relying on toxic solvents and expensive instrumentation. Herein, we pioneer a green, cost-effective chemometrics approach for MLK and LCZ analysis using UV spectroscopy and intelligent multivariate calibration. Following a multilevel multifactor experimental design, UV spectral data was acquired for 25 synthetic mixtures and modeled via classical least squares (CLS), principal component regression (PCR), partial least squares (PLS), and genetic algorithm-PLS (GA-PLS) techniques. Latin hypercube sampling (LHS) strategically constructed an optimal validation set of 13 mixtures for unbiased predictive performance assessment. Following optimization of the models regarding latent variables (LVs) and wavelength region, the optimum root mean square error of cross-validation (RMSECV) was attained at 2 LVs for the 210–400 nm spectral range (191 data points). The GA-PLS model demonstrated superb accuracy, with recovery percentages (R%) from 98 to 102% for both analytes, and root mean square error of calibration (RMSEC) and prediction (RMSEP) of (0.0943, 0.1872) and (0.1926, 0.1779) for MLK and LCZ, respectively, as well bias-corrected mean square error of prediction (BCMSEP) of -0.0029 and 0.0176, relative root mean square error of prediction (RRMSEP) reaching 0.7516 and 0.6585, and limits of detection (LOD) reaching 0.0813 and 0.2273 for MLK and LCZ respectively. Practical pharmaceutical sample analysis was successfully confirmed via standard additions. We further conducted pioneering multidimensional sustainability evaluations using state-of-the-art greenness, blueness, and whiteness tools. The method demonstrated favorable environmental metrics across all assessment tools. The obtained Green National Environmental Method Index (NEMI), and Complementary Green Analytical Procedure Index (ComplexGAPI) quadrants affirmed green analytical principles. Additionally, the method had a high Analytical Greenness Metric (AGREE) score (0.90) and a low carbon footprint (0.021), indicating environmental friendliness. We also applied blueness and whiteness assessments using the high Blue Applicability Grade Index (BAGI) and Red–Green–Blue 12 (RGB 12) algorithms. The high BAGI (90) and RGB 12 (90.8) scores confirmed the method's strong applicability, cost-effectiveness, and sustainability. This work puts forward an optimal, economically viable green chemistry paradigm for pharmaceutical quality control aligned with sustainable development goals.