#4057BF#4057BF

#4057BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.8% C 0.165 H 270.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#4057BF
RGBrgb(64, 87, 191)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(66.5%, 54.5%, 0%, 25.1%)
CIE-LABlab(40.68, 25.42, -57.34)
CIE-LCHlch(40.68, 62.72, 293.91°)
OKLaboklab(49.83% 0 -0.1648)
OKLCHoklch(49.83% 0.165 270)
XYZxyz(14.9233, 11.6666, 50.7455)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057BF #BFA840
analogous
#4096BF #4057BF #6940BF
triadic
#4057BF #BF4057 #57BF40
tetradic
#4057BF #BF4096 #BFA840 #40BF69
square
#4057BF #BF4096 #BFA840 #40BF69
split-complementary
#4057BF #BF6940 #96BF40
monochromatic
#212D63 #314291 #4057BF #6E7FCE #9CA8DE

Accessibility & contrast

On white

6.30
#4057BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4057BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057BF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057BF#FFFFFF#000000##FFFFFF
##4057BF1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0566C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4057bf;
/* rgb */ color: rgb(64, 87, 191);
/* oklch */ color: oklch(49.8% 0.165 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d3',
    500: '#4057bf',
    950: '#000000',
  },
}
SCSS
$custom: #4057bf;
$custom-light: #8386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4057bf",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 229.134,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49825,
    "c": 0.16482,
    "h": 270
  },
  "luminance": 0.11668
}

Semantic roles & 50–950 ramp

primary
#4057BF
secondary
#CAC091
accent
#C04ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4057BF

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

Preview Lab → · Contrast checker → · Palette generator →

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