#4C51E7#4C51E7

#4C51E7 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.221 H 274.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4C51E7
RGBrgb(76, 81, 231)
HSLhsl(238, 76%, 60%)
HSVhsv(238, 67%, 91%)
CMYKcmyk(67.1%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.05, 44.57, -76.43)
CIE-LCHlch(43.05, 88.47, 300.25°)
OKLaboklab(52.73% 0.0168 -0.2206)
OKLCHoklch(52.73% 0.221 274.3)
XYZxyz(20.3419, 13.1890, 77.0595)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51E7 #E7E24C
analogous
#4C9EE7 #4C51E7 #954CE7
triadic
#4C51E7 #E74C51 #51E74C
tetradic
#4C51E7 #E74C9E #E7E24C #4CE795
square
#4C51E7 #E74C9E #E7E24C #4CE795
split-complementary
#4C51E7 #E7954C #9EE74C
monochromatic
#161AA3 #1D23D9 #4C51E7 #8285EE #B8BAF5

Accessibility & contrast

On white

5.77
#4C51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4C51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51E7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51E7#FFFFFF#000000##FFFFFF
##4C51E71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c51e7;
/* rgb */ color: rgb(76, 81, 231);
/* oklch */ color: oklch(52.7% 0.221 274.3);
Tailwind
colors: {
  custom: {
    50: '#9082f0',
    500: '#4c51e7',
    950: '#000000',
  },
}
SCSS
$custom: #4c51e7;
$custom-light: #9082f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51e7",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 238.065,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52732,
    "c": 0.22129,
    "h": 274.3
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#4C51E7
secondary
#E5E3AA
accent
#D20DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4C51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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