#4E40B5#4E40B5

#4E40B5 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.177 H 282.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4E40B5
RGBrgb(78, 64, 181)
HSLhsl(247, 48%, 48%)
HSVhsv(247, 65%, 71%)
CMYKcmyk(56.9%, 64.6%, 0%, 29%)
CIE-LABlab(35.25, 38.78, -60.26)
CIE-LCHlch(35.25, 71.66, 302.77°)
OKLaboklab(45.81% 0.0376 -0.1732)
OKLCHoklch(45.81% 0.177 282.3)
XYZxyz(13.3132, 8.6218, 44.6698)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B5 #A7B540
analogous
#406DB5 #4E40B5 #8840B5
triadic
#4E40B5 #B54E40 #40B54E
tetradic
#4E40B5 #B5406D #A7B540 #40B588
square
#4E40B5 #B5406D #A7B540 #40B588
split-complementary
#4E40B5 #B58840 #6DB540
monochromatic
#27205B #3B3088 #4E40B5 #7468CA #9E96DA

Accessibility & contrast

On white

7.71
#4E40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4E40B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B5
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B5#FFFFFF#000000##FFFFFF
##4E40B51.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#185D74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e40b5;
/* rgb */ color: rgb(78, 64, 181);
/* oklch */ color: oklch(45.8% 0.177 282.3);
Tailwind
colors: {
  custom: {
    50: '#8a76cc',
    500: '#4e40b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b5;
$custom-light: #8a76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b5",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 247.179,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4581,
    "c": 0.17725,
    "h": 282.3
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#4E40B5
secondary
#BEC58B
accent
#D750C7
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #4E40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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