#4C51E2#4C51E2

#4C51E2 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.215 H 274.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#4C51E2
RGBrgb(76, 81, 226)
HSLhsl(238, 72%, 59%)
HSVhsv(238, 66%, 89%)
CMYKcmyk(66.4%, 64.2%, 0%, 11.4%)
CIE-LABlab(42.63, 42.92, -74.28)
CIE-LCHlch(42.63, 85.79, 300.02°)
OKLaboklab(52.3% 0.0172 -0.2143)
OKLCHoklch(52.3% 0.215 274.6)
XYZxyz(19.6458, 12.9106, 73.3934)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51E2 #E2DD4C
analogous
#4C9CE2 #4C51E2 #924CE2
triadic
#4C51E2 #E24C51 #51E24C
tetradic
#4C51E2 #E24C9C #E2DD4C #4CE292
square
#4C51E2 #E24C9C #E2DD4C #4CE292
split-complementary
#4C51E2 #E2924C #9CE24C
monochromatic
#191D9B #2227CF #4C51E2 #8184EB #B5B7F3

Accessibility & contrast

On white

5.86
#4C51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4C51E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51E2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51E2#FFFFFF#000000##FFFFFF
##4C51E21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4c51e2;
/* rgb */ color: rgb(76, 81, 226);
/* oklch */ color: oklch(52.3% 0.215 274.6);
Tailwind
colors: {
  custom: {
    50: '#9082ec',
    500: '#4c51e2',
    950: '#000000',
  },
}
SCSS
$custom: #4c51e2;
$custom-light: #9082ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51e2",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 238,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52298,
    "c": 0.21504,
    "h": 274.6
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#4C51E2
secondary
#E2E0A8
accent
#E939EF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4C51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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