<input type="checkbox" id="check" name="check" class="check_box">
<label for="check" class="check_box">CustumBOX</label>
input[type=checkbox]{
    display:none;
    margin:0px
  }
  label.check_box{
    position: relative;
    padding: 0 0 0 42px;
  }
  label.check_box::after, label.check_box::before{
    position: absolute;
    content: "";
    display: block;
    top: 50%;
  }
  label.check_box::after {
    left: 15px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 1px solid #00008b;
    border-radius: 5px;
  }
  label.check_box::before {
    left: 21px;
    margin-top: -10px;
    margin-left: -1px;
    width: 10px;
    height: 14px;
    border-right: 2px solid #0171bd;
    border-bottom: 2px solid #0171bd;
    transform: rotate(45deg);
    opacity: 0;
  }
  input.check_box:checked + label::before{
    opacity: 1;
  }