#4E51CF#4E51CF

#4E51CF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.8% C 0.190 H 276.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#4E51CF
RGBrgb(78, 81, 207)
HSLhsl(239, 57%, 56%)
HSVhsv(239, 62%, 81%)
CMYKcmyk(62.3%, 60.9%, 0%, 18.8%)
CIE-LABlab(41.23, 36.92, -65.68)
CIE-LCHlch(41.23, 75.35, 299.34°)
OKLaboklab(50.83% 0.0206 -0.1891)
OKLCHoklch(50.83% 0.19 276.2)
XYZxyz(17.3431, 12.0082, 60.4233)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51CF #CFCC4E
analogous
#4E91CF #4E51CF #8B4ECF
triadic
#4E51CF #CF4E51 #51CF4E
tetradic
#4E51CF #CF4E91 #CFCC4E #4ECF8B
square
#4E51CF #CF4E91 #CFCC4E #4ECF8B
split-complementary
#4E51CF #CF8B4E #91CF4E
monochromatic
#232580 #3033B0 #4E51CF #7E80DC #AEB0E9

Accessibility & contrast

On white

6.17
#4E51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4E51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51CF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51CF#FFFFFF#000000##FFFFFF
##4E51CF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e51cf;
/* rgb */ color: rgb(78, 81, 207);
/* oklch */ color: oklch(50.8% 0.190 276.2);
Tailwind
colors: {
  custom: {
    50: '#8d82df',
    500: '#4e51cf',
    950: '#000000',
  },
}
SCSS
$custom: #4e51cf;
$custom-light: #8d82df;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51cf",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 238.605,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50832,
    "c": 0.19019,
    "h": 276.2
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#4E51CF
secondary
#D7D6A2
accent
#DD47E1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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