#4056CE#4056CE

#4056CE is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.186 H 270.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#4056CE
RGBrgb(64, 86, 206)
HSLhsl(231, 59%, 53%)
HSVhsv(231, 69%, 81%)
CMYKcmyk(68.9%, 58.3%, 0%, 19.2%)
CIE-LABlab(41.53, 31.38, -64.65)
CIE-LCHlch(41.53, 71.86, 295.89°)
OKLaboklab(50.81% 0.0014 -0.1863)
OKLCHoklch(50.81% 0.186 270.4)
XYZxyz(16.5789, 12.2002, 59.8617)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056CE #CEB840
analogous
#409DCE #4056CE #7140CE
triadic
#4056CE #CE4056 #56CE40
tetradic
#4056CE #CE409D #CEB840 #40CE71
square
#4056CE #CE409D #CEB840 #40CE71
split-complementary
#4056CE #CE7140 #9DCE40
monochromatic
#1E2C75 #2B3EA6 #4056CE #7181DA #A1ACE7

Accessibility & contrast

On white

6.10
#4056CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4056CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056CE
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056CE#FFFFFF#000000##FFFFFF
##4056CE1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4056ce;
/* rgb */ color: rgb(64, 86, 206);
/* oklch */ color: oklch(50.8% 0.186 270.4);
Tailwind
colors: {
  custom: {
    50: '#8685de',
    500: '#4056ce',
    950: '#000000',
  },
}
SCSS
$custom: #4056ce;
$custom-light: #8685de;
$custom-dark: #000000;
JSON
{
  "hex": "#4056ce",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 230.704,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50811,
    "c": 0.18634,
    "h": 270.4
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4056CE

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

Preview Lab → · Contrast checker → · Palette generator →

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