Although there are answers that create unnecessary lines, I would suggest just using the most efficient ones:
var brush=new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0x20, 0x30));
FromArgb . - , 255/0xFF, . 3 , , , . : "D02030".
, , SolidColorBrush, app.xaml, :
<SolidColorBrush x:Key="myBrush" Color="#D02030" />
:
txtHome.Foreground = App.Current.Resources["myBrush"] as SolidColorBrush;