The line is rendered darker than the set color.

Select [Render Properties] under [Properties]. Change the [View Transform] setting under [Color Management] at the bottom from [Filmic] to [Standard] to display the set color.