#4E42C4#4E42C4

#4E42C4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.4% C 0.194 H 280.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#4E42C4
RGBrgb(78, 66, 196)
HSLhsl(246, 52%, 51%)
HSVhsv(246, 66%, 77%)
CMYKcmyk(60.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(36.93, 42.36, -66.32)
CIE-LCHlch(36.93, 78.69, 302.57°)
OKLaboklab(47.42% 0.0342 -0.191)
OKLCHoklch(47.42% 0.194 280.2)
XYZxyz(15.0508, 9.5006, 53.2545)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C4 #B8C442
analogous
#4277C4 #4E42C4 #8F42C4
triadic
#4E42C4 #C44E42 #42C44E
tetradic
#4E42C4 #C44277 #B8C442 #42C48F
square
#4E42C4 #C44277 #B8C442 #42C48F
split-complementary
#4E42C4 #C48F42 #77C442
monochromatic
#28216A #393099 #4E42C4 #7A71D3 #A59FE1

Accessibility & contrast

On white

7.24
#4E42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4E42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C4
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C4#FFFFFF#000000##FFFFFF
##4E42C41.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4e42c4;
/* rgb */ color: rgb(78, 66, 196);
/* oklch */ color: oklch(47.4% 0.194 280.2);
Tailwind
colors: {
  custom: {
    50: '#8c77d7',
    500: '#4e42c4',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c4;
$custom-light: #8c77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c4",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 245.538,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.19404,
    "h": 280.2
  },
  "luminance": 0.09502
}

Semantic roles & 50–950 ramp

primary
#4E42C4
secondary
#C8CE94
accent
#DC4CCF
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4E42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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