Studies have shown that an abundance of blue light, especially at night, can suppress melatonin levels in humans, making it tougher to sleep after recent exposure. Personal experience has probably shown you that bright blue lights from your monitor are just out-and-out painful when you're in a dark room. You can solve both of these issues at once with some built-in settings on your computer's operating system, to automatically shift the colors to a more tolerable glow.
On macOS, the feature is called "Night Shift," and it changes the color shift of your display based on your time zone. You can enable it by going to System Preferences, then Display, then Night Shift and select Sunset to Sunrise in the schedule menu for default behavior, or set your own custom schedule if you'd prefer.
On Windows 10, the feature is called "Night Light" and you can turn it on by going to Settings, then System, then Display and flipping the switch next to "Night light" or diving into Night light settings if you want to tweak the behavior.
Both of these convenient features are inspired by/rip off an app called f.lux, which was available for both macOS and Windows 10 long before, and boasts a ton of additional features and customizations that make it a more robust and configurable alternative to your operating system's built-in feature if you're looking to dive even deeper into make your screen just a little less abrasive, no matter what happens to be on it.