title: How to convert color name to the corresponding hexadecimal representation?
body: <p>For example:</p>
  
  <pre><code>blue 
  </code></pre>
  
  <p>converts to:</p>
  
  <pre><code>#0000FF
  </code></pre>
  
  <p>I wrote it as:</p>
  
  <p><code>Color color = Color.FromName("blue");</code></p>
  
  <p>But I don't know how to get the hexadecimal representation.</p>