tl;dr
xrandr --output HDMI-1 --set "Broadcast RGB" "Limited 16:235"
Detailed answer
The problem was with the X server. The idea came from this Arch Linux Wiki article about xrandr
.
They suggest there to run:
xrandr --output HDMI-1 --set "Broadcast RGB" "Full"
in order to fix colors. It didn't work but I decided to see other options I can change with --set
.
On Ubuntu 17.04 xrandr --prop
returns:
HDMI-1 connected 1050x1680+1920+0 left (normal left inverted right x axis y axis) 459mm x 296mm [... some uninteresting properties ...] Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 [... some uninteresting properties ...]
It turns out that
xrandr --output HDMI-1 --set "Broadcast RGB" "Limited 16:235"
fixed the issue and now all the colors are distinguishable.