#4C51E5#4C51E5

#4C51E5 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.6% C 0.219 H 274.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#4C51E5
RGBrgb(76, 81, 229)
HSLhsl(238, 75%, 60%)
HSVhsv(238, 67%, 90%)
CMYKcmyk(66.8%, 64.6%, 0%, 10.2%)
CIE-LABlab(42.88, 43.91, -75.57)
CIE-LCHlch(42.88, 87.40, 300.16°)
OKLaboklab(52.56% 0.0169 -0.2181)
OKLCHoklch(52.56% 0.219 274.4)
XYZxyz(20.0611, 13.0767, 75.5804)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51E5 #E5E04C
analogous
#4C9EE5 #4C51E5 #934CE5
triadic
#4C51E5 #E54C51 #51E54C
tetradic
#4C51E5 #E54C9E #E5E04C #4CE593
square
#4C51E5 #E54C9E #E5E04C #4CE593
split-complementary
#4C51E5 #E5934C #9EE54C
monochromatic
#171C9F #1F25D5 #4C51E5 #8185ED #B7B9F5

Accessibility & contrast

On white

5.81
#4C51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4C51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51E5
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51E5#FFFFFF#000000##FFFFFF
##4C51E51.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#005EE2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4c51e5;
/* rgb */ color: rgb(76, 81, 229);
/* oklch */ color: oklch(52.6% 0.219 274.4);
Tailwind
colors: {
  custom: {
    50: '#9082ee',
    500: '#4c51e5',
    950: '#000000',
  },
}
SCSS
$custom: #4c51e5;
$custom-light: #9082ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51e5",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 238.039,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52557,
    "c": 0.2188,
    "h": 274.4
  },
  "luminance": 0.13079
}

Semantic roles & 50–950 ramp

primary
#4C51E5
secondary
#E4E2A9
accent
#EB37F1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4C51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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