I am struggling to add a header with a colored headsepline to my header.
I have tried to add a command like this:
\setheadsepline{\color{1blue}}
But instead of the colored line I got the whole text blue. I know it's probably an easier fix, but I just can't find it. I want to have the same color on the header line, as I have on the Titlepage.
Sample:
\documentclass[a4paper,12pt,titlepage]{scrartcl}
\usepackage[left=2.5cm, right=2cm]{geometry}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fontenc}
\usepackage{microtype} %Spacing
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
%\usepackage{hyperref}
\usepackage{url}
\urlstyle{same}
\usepackage{caption}
\usepackage{float}
\usepackage{setspace}
%Titlepage
\colorlet{1blue}{RoyalBlue!65}
%NewCommand HRule for Titlepage
\newcommand{\HRule}{\textcolor{1blue}{\rule{\textwidth}{0.5mm}}}
%Header
\usepackage[automark, headsepline]{scrpage2}
\pagestyle{scrheadings}
\setheadsepline{\color{1blue}}
\ihead{}
\chead{}
%\ohead{\includegraphics[width=2.5cm]{Bilder/krutec-logo-m.png}}
\ifoot{}
\cfoot{}
\ofoot{\pagemark}
\begin{document}
Minimal example
\end{document}



