It seems to be returning Brush, and since you set the color, it should return SolidColorBrush. try it
var color = ((SolidColorBrush)clr1.Background).Color.ToString();
Example:
var color = new Color() {R = 0xF0, G = 0x10, B = 0x80};
var brush = new SolidColorBrush(color);
var hexcolor = brush.Color.ToString();
hexcolor equally "#00F01080"
source
share