#4057D7#4057D7

#4057D7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.197 H 270.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4057D7
RGBrgb(64, 87, 215)
HSLhsl(231, 65%, 55%)
HSVhsv(231, 70%, 84%)
CMYKcmyk(70.2%, 59.5%, 0%, 15.7%)
CIE-LABlab(42.48, 33.92, -68.28)
CIE-LCHlch(42.48, 76.24, 296.42°)
OKLaboklab(51.73% 0.0007 -0.197)
OKLCHoklch(51.73% 0.197 270.2)
XYZxyz(17.7841, 12.8109, 65.8123)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057D7 #D7C040
analogous
#40A3D7 #4057D7 #7540D7
triadic
#4057D7 #D74057 #57D740
tetradic
#4057D7 #D740A3 #D7C040 #40D775
square
#4057D7 #D740A3 #D7C040 #40D775
split-complementary
#4057D7 #D77540 #A3D740
monochromatic
#1B2B81 #263BB4 #4057D7 #7384E2 #A5B0EC

Accessibility & contrast

On white

5.89
#4057D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4057D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057D7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057D7#FFFFFF#000000##FFFFFF
##4057D71.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4057d7;
/* rgb */ color: rgb(64, 87, 215);
/* oklch */ color: oklch(51.7% 0.197 270.2);
Tailwind
colors: {
  custom: {
    50: '#8886e4',
    500: '#4057d7',
    950: '#000000',
  },
}
SCSS
$custom: #4057d7;
$custom-light: #8886e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4057d7",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 215
  },
  "hsl": {
    "h": 230.861,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51731,
    "c": 0.19699,
    "h": 270.2
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

primary
#4057D7
secondary
#D9D09A
accent
#CF3FE8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4057D7

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

Preview Lab → · Contrast checker → · Palette generator →

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