#4C56D5#4C56D5

#4C56D5 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.192 H 274.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4C56D5
RGBrgb(76, 86, 213)
HSLhsl(236, 62%, 57%)
HSVhsv(236, 64%, 84%)
CMYKcmyk(64.3%, 59.6%, 0%, 16.5%)
CIE-LABlab(42.76, 35.54, -66.65)
CIE-LCHlch(42.76, 75.53, 298.07°)
OKLaboklab(52.07% 0.0139 -0.1919)
OKLCHoklch(52.07% 0.192 274.2)
XYZxyz(18.3145, 12.9946, 64.4809)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C56D5 #D5CB4C
analogous
#4C9BD5 #4C56D5 #864CD5
triadic
#4C56D5 #D54C56 #56D54C
tetradic
#4C56D5 #D54C9B #D5CB4C #4CD586
square
#4C56D5 #D54C9B #D5CB4C #4CD586
split-complementary
#4C56D5 #D5864C #9BD54C
monochromatic
#202787 #2B36B9 #4C56D5 #7E85E1 #AFB4EC

Accessibility & contrast

On white

5.83
#4C56D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4C56D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C56D5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C56D5#FFFFFF#000000##FFFFFF
##4C56D51.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4c56d5;
/* rgb */ color: rgb(76, 86, 213);
/* oklch */ color: oklch(52.1% 0.192 274.2);
Tailwind
colors: {
  custom: {
    50: '#8d85e3',
    500: '#4c56d5',
    950: '#000000',
  },
}
SCSS
$custom: #4c56d5;
$custom-light: #8d85e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c56d5",
  "rgb": {
    "r": 76,
    "g": 86,
    "b": 213
  },
  "hsl": {
    "h": 235.62,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52069,
    "c": 0.19243,
    "h": 274.2
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#4C56D5
secondary
#DAD6A2
accent
#D943E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4C56D5

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

Preview Lab → · Contrast checker → · Palette generator →

#4C56D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva