[Tex/LaTex] How to customize beamer’s color

beamercolor

I'm trying to replicate the following colour scheme in beamer, but am having difficulty in doing so:

enter image description here

\documentclass[xcolor={dvipsnames}]{beamer}
\usetheme{CambridgeUS}

\setbeamercolor*{structure}{bg=PineGreen!20,fg=PineGreen}

\setbeamercolor*{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=structure.fg!75}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}

\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}

\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=gray!10!white,fg=PineGreen}

\setbeamercolor*{titlelike}{parent=palette primary}

\author{The Author}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Test title}
\framesubtitle{Test subtitle}
test text
\end{frame}

\end{document}

Best Answer

The cholor scheme illustrated in the image basically consists of certain shades of blue and black, so you can replace PineGreen in your code with an appropriate shade of blue; for example:

\definecolor{myblue}{RGB}{33,84,157}

A little example:

\documentclass[xcolor={dvipsnames}]{beamer}
\usetheme{CambridgeUS}

\definecolor{myblue}{RGB}{33,84,157}

\setbeamercolor*{structure}{bg=myblue!20,fg=myblue}

\setbeamercolor*{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=structure.fg!75}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=black}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}

\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}

\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=myblue!85,fg=white}

\setbeamercolor*{titlelike}{parent=palette primary}

\author{The Author}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Test title}
\framesubtitle{Test subtitle}
test text
\end{frame}

\end{document}

enter image description here

Another option is to take advantage of the fact that the scheme resembles the predefined whale color theme, so instead of redefining all the palettes, you can load the color theme and make minor changes to some elements:

\documentclass[xcolor={dvipsnames}]{beamer}
\usetheme{CambridgeUS}
\usecolortheme{whale}

\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=black}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}

\setbeamercolor{frametitle}{bg=structure!75,fg=white}

\author{The Author}
\title{Work Culture}
\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Test title}
\framesubtitle{Test subtitle}
test text
\end{frame}

\end{document}

enter image description here

Related Question