#4057BC#4057BC

#4057BC is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.161 H 269.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#4057BC
RGBrgb(64, 87, 188)
HSLhsl(229, 49%, 49%)
HSVhsv(229, 66%, 74%)
CMYKcmyk(66%, 53.7%, 0%, 26.3%)
CIE-LABlab(40.47, 24.36, -55.93)
CIE-LCHlch(40.47, 61.00, 293.53°)
OKLaboklab(49.6% -0.0002 -0.1607)
OKLCHoklch(49.6% 0.161 269.9)
XYZxyz(14.5966, 11.5359, 49.0246)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BC #BCA540
analogous
#4095BC #4057BC #6740BC
triadic
#4057BC #BC4057 #57BC40
tetradic
#4057BC #BC4095 #BCA540 #40BC67
square
#4057BC #BC4095 #BCA540 #40BC67
split-complementary
#4057BC #BC6740 #95BC40
monochromatic
#212D61 #30428E #4057BC #6C7ECD #9AA6DD

Accessibility & contrast

On white

6.35
#4057BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4057BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057BC
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BC#FFFFFF#000000##FFFFFF
##4057BC1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1065C0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#006F81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4057bc;
/* rgb */ color: rgb(64, 87, 188);
/* oklch */ color: oklch(49.6% 0.161 269.9);
Tailwind
colors: {
  custom: {
    50: '#8286d1',
    500: '#4057bc',
    950: '#000000',
  },
}
SCSS
$custom: #4057bc;
$custom-light: #8286d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4057bc",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 228.871,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49598,
    "c": 0.16068,
    "h": 269.9
  },
  "luminance": 0.11537
}

Semantic roles & 50–950 ramp

primary
#4057BC
secondary
#C9BE8F
accent
#BF4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4057BC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4057BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva