I am using tcolorbox package for my custom theorem like environment.
\documentclass{article}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{theorems,skins,hooks}
\definecolor{myblue}{RGB}{0, 61, 116}
\newcounter{algorithmcounter}
\newtcbtheorem[number within=section]{algorithminner}{\textcolor{myblue}{Algorithm}}
{%
enhanced,
colback=blue!10,
frame hidden,
boxrule=0pt,
borderline west={2pt}{0pt}{myblue},
sharp corners,
detach title,
before upper=\tcbtitle\par\smallskip,
coltitle=black!85,
fonttitle=\bfseries\sffamily,
description font=\mdseries,
separator sign none,
segmentation style={solid, black!85},
}{th}
\newenvironment{algorithm}[1]
{\stepcounter{algorithmcounter}\begin{algorithminner}{#1}{algorithm-\arabic{section}-\arabic{algorithmcounter}}}
{\end{algorithminner}}
\begin{document}
\section{Example Section}
\begin{algorithm}{Example Algorithm}
This is an example algorithm.
\end{algorithm}
\end{document}
and this is what I am getting after compiling it.
But I want to change the color of the number counter too ('Algorithm 1.1') to myblue. I tried using
coltitle=myblue
but it is changing color of the whole title. I want 'Example Algorithm' to stay in default black color.
Any help is appreciated.