#4E42C1#4E42C1

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

Color values

HEX#4E42C1
RGBrgb(78, 66, 193)
HSLhsl(246, 51%, 51%)
HSVhsv(246, 66%, 76%)
CMYKcmyk(59.6%, 65.8%, 0%, 24.3%)
CIE-LABlab(36.68, 41.40, -64.98)
CIE-LCHlch(36.68, 77.05, 302.51°)
OKLaboklab(47.16% 0.0346 -0.1871)
OKLCHoklch(47.16% 0.19 280.5)
XYZxyz(14.7127, 9.3653, 51.4741)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C1 #B5C142
analogous
#4275C1 #4E42C1 #8D42C1
triadic
#4E42C1 #C14E42 #42C14E
tetradic
#4E42C1 #C14275 #B5C142 #42C18D
square
#4E42C1 #C14275 #B5C142 #42C18D
split-complementary
#4E42C1 #C18D42 #75C142
monochromatic
#282267 #3A3195 #4E42C1 #7970D0 #A49EDF

Accessibility & contrast

On white

7.31
#4E42C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4E42C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C1#FFFFFF#000000##FFFFFF
##4E42C11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e42c1;
/* rgb */ color: rgb(78, 66, 193);
/* oklch */ color: oklch(47.2% 0.190 280.5);
Tailwind
colors: {
  custom: {
    50: '#8c77d5',
    500: '#4e42c1',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c1;
$custom-light: #8c77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c1",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 245.669,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47157,
    "c": 0.19024,
    "h": 280.5
  },
  "luminance": 0.09366
}

Semantic roles & 50–950 ramp

primary
#4E42C1
secondary
#C6CC93
accent
#DA4ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4E42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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