#4057C7#4057C7

#4057C7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.4% C 0.176 H 270.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#4057C7
RGBrgb(64, 87, 199)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(67.8%, 56.3%, 0%, 22%)
CIE-LABlab(41.26, 28.27, -61.05)
CIE-LCHlch(41.26, 67.27, 294.85°)
OKLaboklab(50.44% 0.0004 -0.1757)
OKLCHoklch(50.44% 0.176 270.1)
XYZxyz(15.8278, 12.0284, 55.5093)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057C7 #C7B040
analogous
#409BC7 #4057C7 #6D40C7
triadic
#4057C7 #C74057 #57C740
tetradic
#4057C7 #C7409B #C7B040 #40C76D
square
#4057C7 #C7409B #C7B040 #40C76D
split-complementary
#4057C7 #C76D40 #9BC740
monochromatic
#202D6D #2E419C #4057C7 #6F81D5 #9FAAE3

Accessibility & contrast

On white

6.17
#4057C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4057C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057C7
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057C7#FFFFFF#000000##FFFFFF
##4057C71.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4057c7;
/* rgb */ color: rgb(64, 87, 199);
/* oklch */ color: oklch(50.4% 0.176 270.1);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4057c7',
    950: '#000000',
  },
}
SCSS
$custom: #4057c7;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4057c7",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 199
  },
  "hsl": {
    "h": 229.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50443,
    "c": 0.17573,
    "h": 270.1
  },
  "luminance": 0.1203
}

Semantic roles & 50–950 ramp

primary
#4057C7
secondary
#CFC594
accent
#C54ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4057C7

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

Preview Lab → · Contrast checker → · Palette generator →

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