TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use the title color of my beamer presentation (some kind of blue) to write some inline text with the same color. Therefore I want to know the color definition. Is there a command for using the same color as the title?

My preamble definitions are:






    \begin{frame}{\bf This is the title's color I want to ``copy''}
            I want to use the ``blue'' color from the title for the caption of the table.

                table1 & trial \\
                1 & 2 \\
                3 & 4
            \caption*{My table}
share|improve this question
Do you mean presentation title or frame title color? Could you post a compilable minimal example? Only with theme Warsaw and crane color theme there's no title with some kind of blue color. – Stefan Kottwitz Jan 22 '12 at 10:30
I added some code to clarify what I mean – Elec Jan 22 '12 at 11:25
up vote 7 down vote accepted

You can copy the color from the frame title this way:

\caption*{\usebeamercolor[fg]{frametitle}{My table}}
share|improve this answer

The command \usebeamercolor[fg]{title in head/foot} (see p. 186 http://www.tex.ac.uk/CTAN/macros/latex/contrib/beamer/doc/beameruserguide.pdf) should provide you with the (text) color used in the header, even if you later decide to change your theme or change the title text color yourself in the preamble.

share|improve this answer
+1 Just tried your solution with the OPs MWE, it works too. – Stefan Kottwitz Jan 22 '12 at 11:35
Thanks. You are correct, though I didn't use this solution correctly at first – Elec Jan 22 '12 at 11:43
@Elec If you think the solution is good, you can also upvote it, by clicking the arrow on the left side of the answer. This general site feature helps further readers finding correct and good posts. – Stefan Kottwitz Jan 22 '12 at 11:45
@Elec It would be good, if you would register on this site. Then you can also vote for the answers to your questions and you have further access to site features. – Stefan Kottwitz Jan 22 '12 at 12:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.