#4E40C9#4E40C9

#4E40C9 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.203 H 280.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#4E40C9
RGBrgb(78, 64, 201)
HSLhsl(246, 56%, 52%)
HSVhsv(246, 68%, 79%)
CMYKcmyk(61.2%, 68.2%, 0%, 21.2%)
CIE-LABlab(36.93, 45.09, -69.23)
CIE-LCHlch(36.93, 82.62, 303.08°)
OKLaboklab(47.55% 0.0351 -0.1995)
OKLCHoklch(47.55% 0.203 280)
XYZxyz(15.5146, 9.5024, 56.2636)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C9 #BBC940
analogous
#4077C9 #4E40C9 #9240C9
triadic
#4E40C9 #C94E40 #40C94E
tetradic
#4E40C9 #C94077 #BBC940 #40C992
square
#4E40C9 #C94077 #BBC940 #40C992
split-complementary
#4E40C9 #C99240 #77C940
monochromatic
#281F6F #392D9F #4E40C9 #7A70D6 #A69FE4

Accessibility & contrast

On white

7.24
#4E40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4E40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C9#FFFFFF#000000##FFFFFF
##4E40C91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#0052C6
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4e40c9;
/* rgb */ color: rgb(78, 64, 201);
/* oklch */ color: oklch(47.6% 0.203 280.0);
Tailwind
colors: {
  custom: {
    50: '#8d76db',
    500: '#4e40c9',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c9;
$custom-light: #8d76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c9",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 246.131,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.2026,
    "h": 280
  },
  "luminance": 0.09504
}

Semantic roles & 50–950 ramp

primary
#4E40C9
secondary
#CAD094
accent
#DF49D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4E40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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