#4E40C0#4E40C0

#4E40C0 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.8% C 0.191 H 281.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#4E40C0
RGBrgb(78, 64, 192)
HSLhsl(247, 50%, 50%)
HSVhsv(247, 67%, 75%)
CMYKcmyk(59.4%, 66.7%, 0%, 24.7%)
CIE-LABlab(36.16, 42.26, -65.24)
CIE-LCHlch(36.16, 77.73, 302.93°)
OKLaboklab(46.76% 0.0364 -0.1878)
OKLCHoklch(46.76% 0.191 281)
XYZxyz(14.4867, 9.0913, 50.8504)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C0 #B2C040
analogous
#4072C0 #4E40C0 #8E40C0
triadic
#4E40C0 #C04E40 #40C04E
tetradic
#4E40C0 #C04072 #B2C040 #40C08E
square
#4E40C0 #C04072 #B2C040 #40C08E
split-complementary
#4E40C0 #C08E40 #72C040
monochromatic
#292164 #3B3092 #4E40C0 #796ECF #A39CDE

Accessibility & contrast

On white

7.45
#4E40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4E40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C0
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C0#FFFFFF#000000##FFFFFF
##4E40C01.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e40c0;
/* rgb */ color: rgb(78, 64, 192);
/* oklch */ color: oklch(46.8% 0.191 281.0);
Tailwind
colors: {
  custom: {
    50: '#8c76d4',
    500: '#4e40c0',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c0;
$custom-light: #8c76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c0",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 246.563,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46756,
    "c": 0.19133,
    "h": 281
  },
  "luminance": 0.09092
}

Semantic roles & 50–950 ramp

primary
#4E40C0
secondary
#C4CB91
accent
#DA4ECB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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