#4056C5#4056C5

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

Color values

HEX#4056C5
RGBrgb(64, 86, 197)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 68%, 77%)
CMYKcmyk(67.5%, 56.3%, 0%, 22.7%)
CIE-LABlab(40.86, 28.20, -60.54)
CIE-LCHlch(40.86, 66.79, 294.97°)
OKLaboklab(50.09% 0.0012 -0.1743)
OKLCHoklch(50.09% 0.174 270.4)
XYZxyz(15.5168, 11.7753, 54.2676)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4056C5 #C5AF40
analogous
#4098C5 #4056C5 #6C40C5
triadic
#4056C5 #C54056 #56C540
tetradic
#4056C5 #C54098 #C5AF40 #40C56C
square
#4056C5 #C54098 #C5AF40 #40C56C
split-complementary
#4056C5 #C56C40 #98C540
monochromatic
#202D6A #2F4099 #4056C5 #6F80D3 #9EA9E2

Accessibility & contrast

On white

6.26
#4056C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4056C5
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4056C5#FFFFFF#000000##FFFFFF
##4056C51.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4056c5;
/* rgb */ color: rgb(64, 86, 197);
/* oklch */ color: oklch(50.1% 0.174 270.4);
Tailwind
colors: {
  custom: {
    50: '#8485d7',
    500: '#4056c5',
    950: '#000000',
  },
}
SCSS
$custom: #4056c5;
$custom-light: #8485d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4056c5",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 230.075,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50094,
    "c": 0.17426,
    "h": 270.4
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#4056C5
secondary
#CEC493
accent
#C54BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4056C5

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

Preview Lab → · Contrast checker → · Palette generator →

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