#4056C4#4056C4

#4056C4 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.173 H 270.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#4056C4
RGBrgb(64, 86, 196)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(67.3%, 56.1%, 0%, 23.1%)
CIE-LABlab(40.78, 27.84, -60.08)
CIE-LCHlch(40.78, 66.22, 294.86°)
OKLaboklab(50.02% 0.0011 -0.1729)
OKLCHoklch(50.02% 0.173 270.4)
XYZxyz(15.4026, 11.7296, 53.6662)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C4 #C4AE40
analogous
#4098C4 #4056C4 #6C40C4
triadic
#4056C4 #C44056 #56C440
tetradic
#4056C4 #C44098 #C4AE40 #40C46C
square
#4056C4 #C44098 #C4AE40 #40C46C
split-complementary
#4056C4 #C46C40 #98C440
monochromatic
#202D69 #2F4098 #4056C4 #6F7FD2 #9EA9E1

Accessibility & contrast

On white

6.28
#4056C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4056C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4056C4
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C4#FFFFFF#000000##FFFFFF
##4056C41.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4056c4;
/* rgb */ color: rgb(64, 86, 196);
/* oklch */ color: oklch(50.0% 0.173 270.4);
Tailwind
colors: {
  custom: {
    50: '#8485d7',
    500: '#4056c4',
    950: '#000000',
  },
}
SCSS
$custom: #4056c4;
$custom-light: #8485d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c4",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 230,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50016,
    "c": 0.17291,
    "h": 270.4
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#4056C4
secondary
#CDC393
accent
#C44CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056C4

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

Preview Lab → · Contrast checker → · Palette generator →

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