You can use the GetSystemColor function by passing the correct system color constant to get
for example, to get the background color of the TEdit component, use
TStyleManager.ActiveStyle.GetSystemColor(clWindow)
And to get the background color of the default shape, try
TStyleManager.ActiveStyle.GetSystemColor(clBtnFace)
source share