#4E40D1#4E40D1

#4E40D1 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.212 H 279.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4E40D1
RGBrgb(78, 64, 209)
HSLhsl(246, 61%, 54%)
HSVhsv(246, 69%, 82%)
CMYKcmyk(62.7%, 69.4%, 0%, 18%)
CIE-LABlab(37.64, 47.60, -72.70)
CIE-LCHlch(37.64, 86.90, 303.21°)
OKLaboklab(48.28% 0.0339 -0.2097)
OKLCHoklch(48.28% 0.212 279.2)
XYZxyz(16.4802, 9.8887, 61.3495)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40D1 #C3D140
analogous
#407AD1 #4E40D1 #9640D1
triadic
#4E40D1 #D14E40 #40D14E
tetradic
#4E40D1 #D1407A #C3D140 #40D196
square
#4E40D1 #D1407A #C3D140 #40D196
split-complementary
#4E40D1 #D19640 #7AD140
monochromatic
#261D79 #3629AB #4E40D1 #7C71DD #A9A3E9

Accessibility & contrast

On white

7.05
#4E40D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4E40D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40D1
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40D1#FFFFFF#000000##FFFFFF
##4E40D11.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4e40d1;
/* rgb */ color: rgb(78, 64, 209);
/* oklch */ color: oklch(48.3% 0.212 279.2);
Tailwind
colors: {
  custom: {
    50: '#8f76e0',
    500: '#4e40d1',
    950: '#000000',
  },
}
SCSS
$custom: #4e40d1;
$custom-light: #8f76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40d1",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 245.793,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48277,
    "c": 0.21243,
    "h": 279.2
  },
  "luminance": 0.0989
}

Semantic roles & 50–950 ramp

primary
#4E40D1
secondary
#CFD597
accent
#E444D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4E40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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