#4C56C5#4C56C5

#4C56C5 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.171 H 274.7°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#4C56C5
RGBrgb(76, 86, 197)
HSLhsl(235, 51%, 54%)
HSVhsv(235, 61%, 77%)
CMYKcmyk(61.4%, 56.3%, 0%, 22.7%)
CIE-LABlab(41.57, 30.13, -59.36)
CIE-LCHlch(41.57, 66.57, 296.91°)
OKLaboklab(50.81% 0.0139 -0.1705)
OKLCHoklch(50.81% 0.171 274.7)
XYZxyz(16.3830, 12.2220, 54.3082)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C56C5 #C5BB4C
analogous
#4C92C5 #4C56C5 #7E4CC5
triadic
#4C56C5 #C54C56 #56C54C
tetradic
#4C56C5 #C54C92 #C5BB4C #4CC57E
square
#4C56C5 #C54C92 #C5BB4C #4CC57E
split-complementary
#4C56C5 #C57E4C #92C54C
monochromatic
#252B72 #343DA0 #4C56C5 #7A82D4 #A8ADE3

Accessibility & contrast

On white

6.10
#4C56C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4C56C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C56C5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C56C5#FFFFFF#000000##FFFFFF
##4C56C51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4c56c5;
/* rgb */ color: rgb(76, 86, 197);
/* oklch */ color: oklch(50.8% 0.171 274.7);
Tailwind
colors: {
  custom: {
    50: '#8a85d7',
    500: '#4c56c5',
    950: '#000000',
  },
}
SCSS
$custom: #4c56c5;
$custom-light: #8a85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c56c5",
  "rgb": {
    "r": 76,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 235.041,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50812,
    "c": 0.17106,
    "h": 274.7
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#4C56C5
secondary
#D0CC9C
accent
#CF4DDB
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #4C56C5

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

Preview Lab → · Contrast checker → · Palette generator →

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