#4057BE#4057BE

#4057BE is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.7% C 0.163 H 270.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#4057BE
RGBrgb(64, 87, 190)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(66.3%, 54.2%, 0%, 25.5%)
CIE-LABlab(40.61, 25.07, -56.87)
CIE-LCHlch(40.61, 62.15, 293.79°)
OKLaboklab(49.75% 0 -0.1635)
OKLCHoklch(49.75% 0.163 270)
XYZxyz(14.8137, 11.6227, 50.1679)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BE #BEA740
analogous
#4096BE #4057BE #6840BE
triadic
#4057BE #BE4057 #57BE40
tetradic
#4057BE #BE4096 #BEA740 #40BE68
square
#4057BE #BE4096 #BEA740 #40BE68
split-complementary
#4057BE #BE6840 #96BE40
monochromatic
#212D62 #314290 #4057BE #6D7FCE #9BA7DD

Accessibility & contrast

On white

6.32
#4057BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4057BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057BE
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BE#FFFFFF#000000##FFFFFF
##4057BE1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0966C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4057be;
/* rgb */ color: rgb(64, 87, 190);
/* oklch */ color: oklch(49.7% 0.163 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d2',
    500: '#4057be',
    950: '#000000',
  },
}
SCSS
$custom: #4057be;
$custom-light: #8386d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4057be",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 229.048,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49749,
    "c": 0.16345,
    "h": 270
  },
  "luminance": 0.11624
}

Semantic roles & 50–950 ramp

primary
#4057BE
secondary
#C9BF90
accent
#C04FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4057BE

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

Preview Lab → · Contrast checker → · Palette generator →

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