#4E40C6#4E40C6

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

Color values

HEX#4E40C6
RGBrgb(78, 64, 198)
HSLhsl(246, 54%, 51%)
HSVhsv(246, 68%, 78%)
CMYKcmyk(60.6%, 67.7%, 0%, 22.4%)
CIE-LABlab(36.67, 44.15, -67.91)
CIE-LCHlch(36.67, 81.00, 303.03°)
OKLaboklab(47.29% 0.0356 -0.1957)
OKLCHoklch(47.29% 0.199 280.3)
XYZxyz(15.1651, 9.3626, 54.4232)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C6 #B8C640
analogous
#4075C6 #4E40C6 #9140C6
triadic
#4E40C6 #C64E40 #40C64E
tetradic
#4E40C6 #C64075 #B8C640 #40C691
square
#4E40C6 #C64075 #B8C640 #40C691
split-complementary
#4E40C6 #C69140 #75C640
monochromatic
#28206C #392E9B #4E40C6 #7A6FD4 #A59EE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E40C6#FFFFFF#000000##FFFFFF
##4E40C61.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)
#005BCA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e40c6;
/* rgb */ color: rgb(78, 64, 198);
/* oklch */ color: oklch(47.3% 0.199 280.3);
Tailwind
colors: {
  custom: {
    50: '#8d76d8',
    500: '#4e40c6',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c6;
$custom-light: #8d76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c6",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 246.269,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.19887,
    "h": 280.3
  },
  "luminance": 0.09364
}

Semantic roles & 50–950 ramp

primary
#4E40C6
secondary
#C8CE93
accent
#DD4ACE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4E40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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