\documentclass{standalone}
\usepackage{tikz,pgf}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\draw[line width=30] (0,0)--(12,0);
\draw [line width=40,white](4,0)--(8,0);
\foreach \x in {0,2} \draw [line width=40,white] (4*\x+4/3,0)--(4*\x +8/3,0);
\foreach \x in {0,2} \foreach \y in {0,2} \draw [line width=40,white] (4*\y + 4/3*\x+4/9,0)--(4*\y + 4/3*\x +8/9,0);
\foreach \x in {0,2} \foreach \y in {0,2} \foreach \z in {0,2} \draw [line width=40,white] (4*\z+4/3*\y + 4/9*\x+4/27,0)--(4*\z +4/3*\y + 4/9*\x +8/27,0);
\draw [line width=30,blue](16/3,0)--(20/3,0);
\foreach \x in {0,2} \draw [line width=30,blue] (4*\x+16/9,0)--(4*\x +20/9,0);
\foreach \x in {0,2} \foreach \y in {0,2} \draw [line width=30,blue] (4*\y + 4/3*\x+16/27,0)--(4*\y + 4/3*\x +20/27,0);
\foreach \x in {0,2} \foreach \y in {0,2} \foreach \z in {0,2} \draw [line width=30,blue] (4*\z+4/3*\y + 4/9*\x+16/81,0)--(4*\z +4/3*\y + 4/9*\x +20/81,0);
\end{tikzpicture}
\end{document}