#4E40D6#4E40D6

#4E40D6 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.218 H 278.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#4E40D6
RGBrgb(78, 64, 214)
HSLhsl(246, 65%, 55%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(63.6%, 70.1%, 0%, 16.1%)
CIE-LABlab(38.09, 49.15, -74.85)
CIE-LCHlch(38.09, 89.54, 303.30°)
OKLaboklab(48.74% 0.0331 -0.216)
OKLCHoklch(48.74% 0.219 278.7)
XYZxyz(17.1090, 10.1402, 64.6609)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40D6 #C8D640
analogous
#407DD6 #4E40D6 #9940D6
triadic
#4E40D6 #D64E40 #40D64E
tetradic
#4E40D6 #D6407D #C8D640 #40D699
square
#4E40D6 #D6407D #C8D640 #40D699
split-complementary
#4E40D6 #D69940 #7DD640
monochromatic
#251B80 #3326B2 #4E40D6 #7D72E1 #ABA5EC

Accessibility & contrast

On white

6.93
#4E40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4E40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40D6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40D6#FFFFFF#000000##FFFFFF
##4E40D61.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0054D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e40d6;
/* rgb */ color: rgb(78, 64, 214);
/* oklch */ color: oklch(48.7% 0.218 278.7);
Tailwind
colors: {
  custom: {
    50: '#8f77e4',
    500: '#4e40d6',
    950: '#000000',
  },
}
SCSS
$custom: #4e40d6;
$custom-light: #8f77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40d6",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 245.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48737,
    "c": 0.2185,
    "h": 278.7
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#4E40D6
secondary
#D3D999
accent
#E840D8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4E40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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