Custom legend as a table

Hi,

I’d like to create a custom legend, which I would like to be a table.
First column of the table should contain a square with of a set color and fill (say blue, dashed), the second and third rows - custom text (say “column 2”, “column 3”).
Is it possible?

Thank you.

Even if it’s not possible to use it as a legend, is it possible to make the table itself?