#4C51CE#4C51CE

#4C51CE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.189 H 275.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4C51CE
RGBrgb(76, 81, 206)
HSLhsl(238, 57%, 55%)
HSVhsv(238, 63%, 81%)
CMYKcmyk(63.1%, 60.7%, 0%, 19.2%)
CIE-LABlab(41.02, 36.27, -65.45)
CIE-LCHlch(41.02, 74.83, 298.99°)
OKLaboklab(50.62% 0.0183 -0.1885)
OKLCHoklch(50.62% 0.189 275.6)
XYZxyz(17.0599, 11.8762, 59.7739)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51CE #CEC94C
analogous
#4C92CE #4C51CE #884CCE
triadic
#4C51CE #CE4C51 #51CE4C
tetradic
#4C51CE #CE4C92 #CEC94C #4CCE88
square
#4C51CE #CE4C92 #CEC94C #4CCE88
split-complementary
#4C51CE #CE884C #92CE4C
monochromatic
#22267D #2F34AD #4C51CE #7C80DB #ACAEE8

Accessibility & contrast

On white

6.22
#4C51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4C51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51CE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51CE#FFFFFF#000000##FFFFFF
##4C51CE1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4c51ce;
/* rgb */ color: rgb(76, 81, 206);
/* oklch */ color: oklch(50.6% 0.189 275.6);
Tailwind
colors: {
  custom: {
    50: '#8c82de',
    500: '#4c51ce',
    950: '#000000',
  },
}
SCSS
$custom: #4c51ce;
$custom-light: #8c82de;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51ce",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 237.692,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50618,
    "c": 0.18935,
    "h": 275.6
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#4C51CE
secondary
#D6D4A0
accent
#DA48E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4C51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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