<｜begin▁of▁sentence｜>### Instruction:
As an Industrial Engineer optimizing processes and systems to enhance productivity, imagine you are using a specialized tool like NetworkX to represent a complex network of interconnected components in a manufacturing facility. During your analysis, you need to make distinctions between different components by color. Given a primary component color represented as hexadecimal '#1f77b4', you are looking to create a lighter shade to denote a related but separate set of components. Utilizing the 'lighten' function in NetworkX with a mixing ratio of 0.3, you aim to generate a visually distinct yet cohesive color scheme for your network representation. Please display the original color alongside the lightened color to observe the differentiation clearly.
### 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|>
