I have noticed that if I declare a new color with RGB values using xcolor
in a TeX file, and then use the new color to write something, the rendered color is not what I put in. E.g.,
\documentclass{article}
\usepackage{xcolor}
\definecolor{nasablue}{RGB}{11,61,145} % the blue in NASA's logo
\begin{document}
% render in large font for convenience
{\color{nasablue}\sffamily\bfseries\fontsize{60}{60}\selectfont Color sample}
\end{document}
No matter what I compile this on (linux, OSX), the text in the rendered PDF has a different RGB value. When I open it up in a viewer and use the color picker to get the RGB value of the text, I get (12,54,134), not what I put in.
In a beamer presentation, this is even worse, and text rendered with this color shows up as (51,51,178). This is awful, and looks purple instead of dark blue. Why does this happen, and how can I correct for this?