#4E42C2#4E42C2

#4E42C2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.2% C 0.192 H 280.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4E42C2
RGBrgb(78, 66, 194)
HSLhsl(246, 51%, 51%)
HSVhsv(246, 66%, 76%)
CMYKcmyk(59.8%, 66%, 0%, 23.9%)
CIE-LABlab(36.76, 41.72, -65.43)
CIE-LCHlch(36.76, 77.60, 302.53°)
OKLaboklab(47.24% 0.0344 -0.1884)
OKLCHoklch(47.24% 0.192 280.4)
XYZxyz(14.8246, 9.4101, 52.0636)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C2 #B6C242
analogous
#4276C2 #4E42C2 #8E42C2
triadic
#4E42C2 #C24E42 #42C24E
tetradic
#4E42C2 #C24276 #B6C242 #42C28E
square
#4E42C2 #C24276 #B6C242 #42C28E
split-complementary
#4E42C2 #C28E42 #76C242
monochromatic
#282268 #3A3196 #4E42C2 #7970D1 #A59FE0

Accessibility & contrast

On white

7.29
#4E42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4E42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C2#FFFFFF#000000##FFFFFF
##4E42C21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e42c2;
/* rgb */ color: rgb(78, 66, 194);
/* oklch */ color: oklch(47.2% 0.192 280.4);
Tailwind
colors: {
  custom: {
    50: '#8c77d5',
    500: '#4e42c2',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c2;
$custom-light: #8c77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c2",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 245.625,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47244,
    "c": 0.1915,
    "h": 280.4
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#4E42C2
secondary
#C7CC94
accent
#DB4DCD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4E42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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