#4056C7#4056C7

#4056C7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.177 H 270.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4056C7
RGBrgb(64, 86, 199)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(67.8%, 56.8%, 0%, 22%)
CIE-LABlab(41.00, 28.91, -61.46)
CIE-LCHlch(41.00, 67.92, 295.19°)
OKLaboklab(50.25% 0.0012 -0.177)
OKLCHoklch(50.25% 0.177 270.4)
XYZxyz(15.7474, 11.8676, 55.4825)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C7 #C7B140
analogous
#409AC7 #4056C7 #6E40C7
triadic
#4056C7 #C74056 #56C740
tetradic
#4056C7 #C7409A #C7B140 #40C76E
square
#4056C7 #C7409A #C7B140 #40C76E
split-complementary
#4056C7 #C76E40 #9AC740
monochromatic
#202C6D #2E409C #4056C7 #6F80D5 #9FAAE3

Accessibility & contrast

On white

6.22
#4056C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4056C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C7
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C7#FFFFFF#000000##FFFFFF
##4056C71.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4056c7;
/* rgb */ color: rgb(64, 86, 199);
/* oklch */ color: oklch(50.3% 0.177 270.4);
Tailwind
colors: {
  custom: {
    50: '#8585d9',
    500: '#4056c7',
    950: '#000000',
  },
}
SCSS
$custom: #4056c7;
$custom-light: #8585d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c7",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 230.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50252,
    "c": 0.17696,
    "h": 270.4
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4056C7

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

Preview Lab → · Contrast checker → · Palette generator →

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