#4C56CD#4C56CD

#4C56CD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.182 H 274.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#4C56CD
RGBrgb(76, 86, 205)
HSLhsl(235, 56%, 55%)
HSVhsv(235, 63%, 80%)
CMYKcmyk(62.9%, 58%, 0%, 19.6%)
CIE-LABlab(42.15, 32.84, -63.03)
CIE-LCHlch(42.15, 71.07, 297.52°)
OKLaboklab(51.43% 0.014 -0.1813)
OKLCHoklch(51.43% 0.182 274.4)
XYZxyz(17.3241, 12.5984, 59.2646)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C56CD #CDC34C
analogous
#4C96CD #4C56CD #834CCD
triadic
#4C56CD #CD4C56 #56CD4C
tetradic
#4C56CD #CD4C96 #CDC34C #4CCD83
square
#4C56CD #CD4C96 #CDC34C #4CCD83
split-complementary
#4C56CD #CD834C #96CD4C
monochromatic
#232A7C #303AAC #4C56CD #7C83DA #ACB0E8

Accessibility & contrast

On white

5.97
#4C56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4C56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C56CD
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C56CD#FFFFFF#000000##FFFFFF
##4C56CD1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4c56cd;
/* rgb */ color: rgb(76, 86, 205);
/* oklch */ color: oklch(51.4% 0.182 274.4);
Tailwind
colors: {
  custom: {
    50: '#8b85dd',
    500: '#4c56cd',
    950: '#000000',
  },
}
SCSS
$custom: #4c56cd;
$custom-light: #8b85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c56cd",
  "rgb": {
    "r": 76,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 235.349,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51432,
    "c": 0.18184,
    "h": 274.4
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#4C56CD
secondary
#D5D19F
accent
#D448E0
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4C56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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