#4E40C5#4E40C5

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

Color values

HEX#4E40C5
RGBrgb(78, 64, 197)
HSLhsl(246, 53%, 51%)
HSVhsv(246, 68%, 77%)
CMYKcmyk(60.4%, 67.5%, 0%, 22.7%)
CIE-LABlab(36.59, 43.83, -67.46)
CIE-LCHlch(36.59, 80.45, 303.01°)
OKLaboklab(47.2% 0.0357 -0.1944)
OKLCHoklch(47.2% 0.198 280.4)
XYZxyz(15.0501, 9.3166, 53.8177)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C5 #B7C540
analogous
#4074C5 #4E40C5 #9040C5
triadic
#4E40C5 #C54E40 #40C54E
tetradic
#4E40C5 #C54074 #B7C540 #40C590
square
#4E40C5 #C54074 #B7C540 #40C590
split-complementary
#4E40C5 #C59040 #74C540
monochromatic
#28206A #3A2F99 #4E40C5 #7A6FD3 #A59EE2

Accessibility & contrast

On white

7.33
#4E40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4E40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C5#FFFFFF#000000##FFFFFF
##4E40C51.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e40c5;
/* rgb */ color: rgb(78, 64, 197);
/* oklch */ color: oklch(47.2% 0.198 280.4);
Tailwind
colors: {
  custom: {
    50: '#8c76d8',
    500: '#4e40c5',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c5;
$custom-light: #8c76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c5",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 246.316,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47196,
    "c": 0.19762,
    "h": 280.4
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#4E40C5
secondary
#C8CE93
accent
#DD4BCD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4E40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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