#4057CE#4057CE

#4057CE is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.0% C 0.185 H 270.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#4057CE
RGBrgb(64, 87, 206)
HSLhsl(230, 59%, 53%)
HSVhsv(230, 69%, 81%)
CMYKcmyk(68.9%, 57.8%, 0%, 19.2%)
CIE-LABlab(41.78, 30.75, -64.24)
CIE-LCHlch(41.78, 71.22, 295.58°)
OKLaboklab(51% 0.0006 -0.1851)
OKLCHoklch(51% 0.185 270.2)
XYZxyz(16.6593, 12.3610, 59.8885)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CE #CEB740
analogous
#409ECE #4057CE #7040CE
triadic
#4057CE #CE4057 #57CE40
tetradic
#4057CE #CE409E #CEB740 #40CE70
square
#4057CE #CE409E #CEB740 #40CE70
split-complementary
#4057CE #CE7040 #9ECE40
monochromatic
#1E2C75 #2B3FA6 #4057CE #7182DA #A1ADE7

Accessibility & contrast

On white

6.05
#4057CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4057CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CE
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CE#FFFFFF#000000##FFFFFF
##4057CE1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4057ce;
/* rgb */ color: rgb(64, 87, 206);
/* oklch */ color: oklch(51.0% 0.185 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686de',
    500: '#4057ce',
    950: '#000000',
  },
}
SCSS
$custom: #4057ce;
$custom-light: #8686de;
$custom-dark: #000000;
JSON
{
  "hex": "#4057ce",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 230.282,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50998,
    "c": 0.18512,
    "h": 270.2
  },
  "luminance": 0.12363
}

Semantic roles & 50–950 ramp

primary
#4057CE
secondary
#D4CA96
accent
#C945E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4057CE

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

Preview Lab → · Contrast checker → · Palette generator →

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