title: UIColor vs IB color (color profile issue)
body: <p>I'm using XCode 8.2.1.
  I just learned about color profiles and that RGB values are not universal.
  But still can't understand how to make it right in code.
  In Interface Builder I selected predefined "Dark Gray Color" for a label. It is (85, 85, 85) in Generic RGB profile. Also in code I set another label color to [UIColor darkGrayColor]. I expected them to have the same color, but they are different.</p>
  
  <p>I used method</p>
  
  <pre><code>- (BOOL)getRed:(nullable CGFloat *)red green:(nullable CGFloat *)green blue:(nullable CGFloat *)blue alpha:(nullable CGFloat *)alpha
  </code></pre>
  
  <p>to get RGB values. For the label which color was set in IB I see that values are actually (104,104,104) which correspond to values in IB when I switch to Device RGB profile.
  So it seems that in code Device RGB profile is used.</p>
  
  <p>So my questions are:</p>
  
  <ol>
  <li>Why standard "Dark Gray Color" is different when set in IB and in code?</li>
  <li>How to use Generic RGB profile in code, so I can match color values with Interface Builder?</li>
  </ol>