From Wien’s displacement law, temperature (T)∝1/λm (where λm is the maximum wavelength). Thus temperature of a body is inversely proportional to the wavelength. Since blue star has smaller wavelength and red star has maximum wavelength, therefore blue star is at higher temperature then red star.