I need a legend type given below. I want to write parameter values just once. How can i get this type legend.
code example
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\begin{document}
\begin{center}
$\begin{array}{lcl}
& \mu & \sigma^2\\
\hline {\color{blue}{\noindent\rule{1.5cm}{0.4pt}}} & 0 & 1\\
{\color{red}\noindent\rule{1.5cm}{0.4pt}} & 1 & 1\\
{\color{green}\noindent\rule{1.5cm}{0.4pt}} & 2 & 1\\
{\color{yellow}\noindent\rule{1.5cm}{0.4pt}} & 3 & 2
\end{array}$
\par\end{center}
\end{document}