title: WPF Styling Colors
body: <p>I want to do something like this: </p>
  
  <p><b>Resource Dictionary</b><br/></p>
  
  <pre><code>&lt;Color x:Key="clrPrimary"&gt;#5381ac&lt;/Color&gt;
  &lt;Color x:Key="clrSecondary"&gt;#20558a&lt;/Color&gt;
  
  &lt;Style TargetType="Grid" x:Key="myGrid"&gt;
      &lt;Setter Property="Background" Value="{StaticResource clrPrimary"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p><b>Getting Exception:</b></p>
  
  <pre><code>'#FF5381AC' is not a valid value for property 'Background'.
  </code></pre>
  
  <p>Having trouble nailing it down, can any one point me in the right direction? </p>