darken image css

CSS
.container img {
  filter: brightness(50%);
}#myimage {
    filter: brightness(50%);
}
Source

Also in CSS: