#4C56D7#4C56D7

#4C56D7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.2% C 0.195 H 274.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#4C56D7
RGBrgb(76, 86, 215)
HSLhsl(236, 63%, 57%)
HSVhsv(236, 65%, 84%)
CMYKcmyk(64.7%, 60%, 0%, 15.7%)
CIE-LABlab(42.91, 36.21, -67.55)
CIE-LCHlch(42.91, 76.64, 298.20°)
OKLaboklab(52.23% 0.0139 -0.1946)
OKLCHoklch(52.23% 0.195 274.1)
XYZxyz(18.5700, 13.0968, 65.8261)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C56D7 #D7CD4C
analogous
#4C9CD7 #4C56D7 #874CD7
triadic
#4C56D7 #D74C56 #56D74C
tetradic
#4C56D7 #D74C9C #D7CD4C #4CD787
square
#4C56D7 #D74C9C #D7CD4C #4CD787
split-complementary
#4C56D7 #D7874C #9CD74C
monochromatic
#1F268A #2A34BC #4C56D7 #7E85E2 #B0B4ED

Accessibility & contrast

On white

5.80
#4C56D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4C56D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C56D7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C56D7#FFFFFF#000000##FFFFFF
##4C56D71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00768E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4c56d7;
/* rgb */ color: rgb(76, 86, 215);
/* oklch */ color: oklch(52.2% 0.195 274.1);
Tailwind
colors: {
  custom: {
    50: '#8d85e4',
    500: '#4c56d7',
    950: '#000000',
  },
}
SCSS
$custom: #4c56d7;
$custom-light: #8d85e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c56d7",
  "rgb": {
    "r": 76,
    "g": 86,
    "b": 215
  },
  "hsl": {
    "h": 235.683,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5223,
    "c": 0.19506,
    "h": 274.1
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#4C56D7
secondary
#DCD8A3
accent
#DB41E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4C56D7

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

Preview Lab → · Contrast checker → · Palette generator →

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