#4E40E9#4E40E9

#4E40E9 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.5% C 0.241 H 277.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4E40E9
RGBrgb(78, 64, 233)
HSLhsl(245, 79%, 58%)
HSVhsv(245, 73%, 91%)
CMYKcmyk(66.5%, 72.5%, 0%, 8.6%)
CIE-LABlab(39.86, 55.01, -82.79)
CIE-LCHlch(39.86, 99.40, 303.60°)
OKLaboklab(50.53% 0.0296 -0.2392)
OKLCHoklch(50.53% 0.241 277.1)
XYZxyz(19.6785, 11.1680, 78.1936)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40E9 #DBE940
analogous
#4087E9 #4E40E9 #A240E9
triadic
#4E40E9 #E94E40 #40E94E
tetradic
#4E40E9 #E94087 #DBE940 #40E9A2
square
#4E40E9 #E94087 #DBE940 #40E9A2
split-complementary
#4E40E9 #E9A240 #87E940
monochromatic
#1E129D #2818D3 #4E40E9 #8177EF #B4AEF6

Accessibility & contrast

On white

6.49
#4E40E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4E40E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40E9
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40E9#FFFFFF#000000##FFFFFF
##4E40E91.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065EE
Deuteranopia (green-blind)
#0057E6
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e40e9;
/* rgb */ color: rgb(78, 64, 233);
/* oklch */ color: oklch(50.5% 0.241 277.1);
Tailwind
colors: {
  custom: {
    50: '#9377f1',
    500: '#4e40e9',
    950: '#000000',
  },
}
SCSS
$custom: #4e40e9;
$custom-light: #9377f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40e9",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 233
  },
  "hsl": {
    "h": 244.97,
    "s": 79.343,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50531,
    "c": 0.24101,
    "h": 277.1
  },
  "luminance": 0.1117
}

Semantic roles & 50–950 ramp

primary
#4E40E9
secondary
#DEE4A1
accent
#F632E6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #4E40E9

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

Preview Lab → · Contrast checker → · Palette generator →

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