#4057BD#4057BD

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

Color values

HEX#4057BD
RGBrgb(64, 87, 189)
HSLhsl(229, 49%, 50%)
HSVhsv(229, 66%, 74%)
CMYKcmyk(66.1%, 54%, 0%, 25.9%)
CIE-LABlab(40.54, 24.71, -56.40)
CIE-LCHlch(40.54, 61.58, 293.66°)
OKLaboklab(49.67% -0.0001 -0.1621)
OKLCHoklch(49.67% 0.162 270)
XYZxyz(14.7047, 11.5791, 49.5943)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BD #BDA640
analogous
#4096BD #4057BD #6840BD
triadic
#4057BD #BD4057 #57BD40
tetradic
#4057BD #BD4096 #BDA640 #40BD68
square
#4057BD #BD4096 #BDA640 #40BD68
split-complementary
#4057BD #BD6840 #96BD40
monochromatic
#212D62 #31428F #4057BD #6D7FCD #9AA7DD

Accessibility & contrast

On white

6.33
#4057BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4057BD
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BD#FFFFFF#000000##FFFFFF
##4057BD1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D65C1
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#006F81
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4057bd;
/* rgb */ color: rgb(64, 87, 189);
/* oklch */ color: oklch(49.7% 0.162 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d2',
    500: '#4057bd',
    950: '#000000',
  },
}
SCSS
$custom: #4057bd;
$custom-light: #8386d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4057bd",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 228.96,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49673,
    "c": 0.16207,
    "h": 270
  },
  "luminance": 0.11581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4057BD

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

Preview Lab → · Contrast checker → · Palette generator →

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