#4E40DC#4E40DC

#4E40DC is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.3% C 0.226 H 278.2°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#4E40DC
RGBrgb(78, 64, 220)
HSLhsl(245, 69%, 56%)
HSVhsv(245, 71%, 86%)
CMYKcmyk(64.5%, 70.9%, 0%, 13.7%)
CIE-LABlab(38.64, 51.02, -77.39)
CIE-LCHlch(38.64, 92.69, 303.39°)
OKLaboklab(49.3% 0.032 -0.2234)
OKLCHoklch(49.3% 0.226 278.2)
XYZxyz(17.8894, 10.4523, 68.7710)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40DC #CEDC40
analogous
#4080DC #4E40DC #9C40DC
triadic
#4E40DC #DC4E40 #40DC4E
tetradic
#4E40DC #DC4080 #CEDC40 #40DC9C
square
#4E40DC #DC4080 #CEDC40 #40DC9C
split-complementary
#4E40DC #DC9C40 #80DC40
monochromatic
#231989 #3023BC #4E40DC #7E74E5 #AEA7EF

Accessibility & contrast

On white

6.79
#4E40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4E40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40DC
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40DC#FFFFFF#000000##FFFFFF
##4E40DC1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E1
Deuteranopia (green-blind)
#0055D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e40dc;
/* rgb */ color: rgb(78, 64, 220);
/* oklch */ color: oklch(49.3% 0.226 278.2);
Tailwind
colors: {
  custom: {
    50: '#9177e8',
    500: '#4e40dc',
    950: '#000000',
  },
}
SCSS
$custom: #4e40dc;
$custom-light: #9177e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40dc",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 245.385,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49296,
    "c": 0.22569,
    "h": 278.2
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#4E40DC
secondary
#D7DC9B
accent
#EC3CDC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4E40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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