#4C51CD#4C51CD

#4C51CD is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.188 H 275.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4C51CD
RGBrgb(76, 81, 205)
HSLhsl(238, 56%, 55%)
HSVhsv(238, 63%, 80%)
CMYKcmyk(62.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(40.94, 35.94, -65.00)
CIE-LCHlch(40.94, 74.28, 298.94°)
OKLaboklab(50.54% 0.0184 -0.1871)
OKLCHoklch(50.54% 0.188 275.6)
XYZxyz(16.9388, 11.8277, 59.1361)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51CD #CDC84C
analogous
#4C92CD #4C51CD #874CCD
triadic
#4C51CD #CD4C51 #51CD4C
tetradic
#4C51CD #CD4C92 #CDC84C #4CCD87
square
#4C51CD #CD4C92 #CDC84C #4CCD87
split-complementary
#4C51CD #CD874C #92CD4C
monochromatic
#23267C #3035AC #4C51CD #7C80DA #ACAEE8

Accessibility & contrast

On white

6.24
#4C51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4C51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51CD
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51CD#FFFFFF#000000##FFFFFF
##4C51CD1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4c51cd;
/* rgb */ color: rgb(76, 81, 205);
/* oklch */ color: oklch(50.5% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#8c82dd',
    500: '#4c51cd',
    950: '#000000',
  },
}
SCSS
$custom: #4c51cd;
$custom-light: #8c82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51cd",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 237.674,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50537,
    "c": 0.18803,
    "h": 275.6
  },
  "luminance": 0.11829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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