Returns whether a specified color is dark.
static bool isColorDark(Color color) => color.computeLuminance() <= 0.5;