#4056C6#4056C6

#4056C6 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.176 H 270.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4056C6
RGBrgb(64, 86, 198)
HSLhsl(230, 54%, 51%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(67.7%, 56.6%, 0%, 22.4%)
CIE-LABlab(40.93, 28.55, -61.00)
CIE-LCHlch(40.93, 67.35, 295.08°)
OKLaboklab(50.17% 0.0012 -0.1756)
OKLCHoklch(50.17% 0.176 270.4)
XYZxyz(15.6317, 11.8213, 54.8731)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C6 #C6B040
analogous
#4099C6 #4056C6 #6D40C6
triadic
#4056C6 #C64056 #56C640
tetradic
#4056C6 #C64099 #C6B040 #40C66D
square
#4056C6 #C64099 #C6B040 #40C66D
split-complementary
#4056C6 #C66D40 #99C640
monochromatic
#202C6C #2E409B #4056C6 #6F80D4 #9EA9E2

Accessibility & contrast

On white

6.24
#4056C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4056C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C6
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C6#FFFFFF#000000##FFFFFF
##4056C61.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#005BC4
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4056c6;
/* rgb */ color: rgb(64, 86, 198);
/* oklch */ color: oklch(50.2% 0.176 270.4);
Tailwind
colors: {
  custom: {
    50: '#8485d8',
    500: '#4056c6',
    950: '#000000',
  },
}
SCSS
$custom: #4056c6;
$custom-light: #8485d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c6",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 198
  },
  "hsl": {
    "h": 230.149,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.17561,
    "h": 270.4
  },
  "luminance": 0.11823
}

Semantic roles & 50–950 ramp

primary
#4056C6
secondary
#CEC593
accent
#C54ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4056C6

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

Preview Lab → · Contrast checker → · Palette generator →

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