#4E40C7#4E40C7

#4E40C7 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.200 H 280.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4E40C7
RGBrgb(78, 64, 199)
HSLhsl(246, 55%, 52%)
HSVhsv(246, 68%, 78%)
CMYKcmyk(60.8%, 67.8%, 0%, 22%)
CIE-LABlab(36.76, 44.46, -68.35)
CIE-LCHlch(36.76, 81.54, 303.05°)
OKLaboklab(47.37% 0.0354 -0.1969)
OKLCHoklch(47.37% 0.2 280.2)
XYZxyz(15.2808, 9.4089, 55.0326)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C7 #B9C740
analogous
#4076C7 #4E40C7 #9240C7
triadic
#4E40C7 #C74E40 #40C74E
tetradic
#4E40C7 #C74076 #B9C740 #40C792
square
#4E40C7 #C74076 #B9C740 #40C792
split-complementary
#4E40C7 #C79240 #76C740
monochromatic
#28206D #392E9C #4E40C7 #7A6FD5 #A69FE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E40C7#FFFFFF#000000##FFFFFF
##4E40C71.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)
#005BCB
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e40c7;
/* rgb */ color: rgb(78, 64, 199);
/* oklch */ color: oklch(47.4% 0.200 280.2);
Tailwind
colors: {
  custom: {
    50: '#8d76d9',
    500: '#4e40c7',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c7;
$custom-light: #8d76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c7",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 246.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47374,
    "c": 0.20011,
    "h": 280.2
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#4E40C7
secondary
#C9CF94
accent
#DE4ACF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4E40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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