The mode line color of the current buffer is darker, I hope the color will not change.
The appearance of the mode-line is governed by two faces:
mode-line-inactive. The former has a
raised, and the foreground/background colours are different. Just
M-x customize-face RET mode-line,mode-line-inactive RET
and adjust as desired.
Note that in emacs-29 there will be a
mode-line-active face as well which inherits from