<｜begin▁of▁sentence｜>### Instruction:
Given a hexadecimal color '#1f77b4', can you use the lighten function to create a lighter version of this color with a mixing ratio of 0.3? You should print the original color alongside the lightened color.
### Response:
import matplotlib.colors as mcolors

def lighten_color(color, ratio=0.5):
    # color is a RGB triplet; ratio is a float between 0 and 1
    return mcolors.to_hex(mcolors.to_rgba(color)[:3] + (ratio,))

# Usage example
original_color = '#1f77b4' # blue
lightened_color = lighten_color(original_color, ratio=0.3)
print(f'Original Color: {original_color}, Lightened Color: {lightened_color}')
<|EOT|>
