For simplicity you could create an extension:-
public static SolidColorBrush ToSolidColorBrush(this string hex_code)
{
return (SolidColorBrush)new BrushConverter().ConvertFromString(hex_code);
}
And then to use:-
SolidColorBrush accentBlue = "#3CACDC".ToSolidColorBrush();