#4E40D5#4E40D5

#4E40D5 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.217 H 278.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4E40D5
RGBrgb(78, 64, 213)
HSLhsl(246, 64%, 54%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(63.4%, 70%, 0%, 16.5%)
CIE-LABlab(38.00, 48.84, -74.42)
CIE-LCHlch(38.00, 89.02, 303.28°)
OKLaboklab(48.65% 0.0332 -0.2147)
OKLCHoklch(48.65% 0.217 278.8)
XYZxyz(16.9817, 10.0892, 63.9904)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40D5 #C7D540
analogous
#407CD5 #4E40D5 #9940D5
triadic
#4E40D5 #D54E40 #40D54E
tetradic
#4E40D5 #D5407C #C7D540 #40D599
square
#4E40D5 #D5407C #C7D540 #40D599
split-complementary
#4E40D5 #D59940 #7CD540
monochromatic
#251C7F #3427B1 #4E40D5 #7C72E0 #ABA4EB

Accessibility & contrast

On white

6.96
#4E40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4E40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40D5
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40D5#FFFFFF#000000##FFFFFF
##4E40D51.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0053D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4e40d5;
/* rgb */ color: rgb(78, 64, 213);
/* oklch */ color: oklch(48.6% 0.217 278.8);
Tailwind
colors: {
  custom: {
    50: '#8f77e3',
    500: '#4e40d5',
    950: '#000000',
  },
}
SCSS
$custom: #4e40d5;
$custom-light: #8f77e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40d5",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 245.638,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48645,
    "c": 0.21729,
    "h": 278.8
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#4E40D5
secondary
#D2D899
accent
#E741D7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4E40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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