#4C56CF#4C56CF

#4C56CF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.185 H 274.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#4C56CF
RGBrgb(76, 86, 207)
HSLhsl(235, 58%, 55%)
HSVhsv(235, 63%, 81%)
CMYKcmyk(63.3%, 58.5%, 0%, 18.8%)
CIE-LABlab(42.30, 33.51, -63.94)
CIE-LCHlch(42.30, 72.19, 297.66°)
OKLaboklab(51.59% 0.014 -0.184)
OKLCHoklch(51.59% 0.185 274.4)
XYZxyz(17.5671, 12.6956, 60.5441)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C56CF #CFC54C
analogous
#4C97CF #4C56CF #834CCF
triadic
#4C56CF #CF4C56 #56CF4C
tetradic
#4C56CF #CF4C97 #CFC54C #4CCF83
square
#4C56CF #CF4C97 #CFC54C #4CCF83
split-complementary
#4C56CF #CF834C #97CF4C
monochromatic
#22297F #2F39AF #4C56CF #7C84DC #ADB1E9

Accessibility & contrast

On white

5.93
#4C56CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4C56CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C56CF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C56CF#FFFFFF#000000##FFFFFF
##4C56CF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4c56cf;
/* rgb */ color: rgb(76, 86, 207);
/* oklch */ color: oklch(51.6% 0.185 274.4);
Tailwind
colors: {
  custom: {
    50: '#8c85df',
    500: '#4c56cf',
    950: '#000000',
  },
}
SCSS
$custom: #4c56cf;
$custom-light: #8c85df;
$custom-dark: #000000;
JSON
{
  "hex": "#4c56cf",
  "rgb": {
    "r": 76,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 235.42,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5159,
    "c": 0.18451,
    "h": 274.4
  },
  "luminance": 0.12697
}

Semantic roles & 50–950 ramp

primary
#4C56CF
secondary
#D7D3A0
accent
#D547E1
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4C56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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