<div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #054577;color:#202122;text-align:center;" title="#054577"> </div> PSL: 3 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #00AA4F;color:#202122;text-align:center;" title="#00AA4F"> </div> MDB: 2 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #E5AD02;color:#202122;text-align:center;" title="#E5AD02"> </div> PSB: 2 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #00BFFF;color:#202122;text-align:center;" title="#00BFFF"> </div> PTB: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #9ACD32;color:#202122;text-align:center;" title="#9ACD32"> </div> PPL: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #1B1845;color:#202122;text-align:center;" title="#1B1845"> </div> SD: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #06C;color:#202122;text-align:center;" title="#06C"> </div> PRB: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #FE8E6D;color:#202122;text-align:center;" title="#FE8E6D"> </div> PDT: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #2CB53F;color:#202122;text-align:center;" title="#2CB53F"> </div> PRTB: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #DA251C;color:#202122;text-align:center;" title="#DA251C"> </div> PCdoB: 1 seat</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #B7B7B7;color:#202122;text-align:center;" title="#B7B7B7"> </div> Sem partido: 1 seat</div>
Own work  using: <a class="external text" href="https://tools.wmflabs.org/parliamentdiagram/parliamentinputform.html">Parliament diagram tool</a>