#4E40B6#4E40B6

#4E40B6 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.179 H 282.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#4E40B6
RGBrgb(78, 64, 182)
HSLhsl(247, 48%, 48%)
HSVhsv(247, 65%, 71%)
CMYKcmyk(57.1%, 64.8%, 0%, 28.6%)
CIE-LABlab(35.33, 39.10, -60.71)
CIE-LCHlch(35.33, 72.21, 302.78°)
OKLaboklab(45.9% 0.0375 -0.1746)
OKLCHoklch(45.9% 0.179 282.1)
XYZxyz(13.4162, 8.6630, 45.2121)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B6 #A8B640
analogous
#406DB6 #4E40B6 #8940B6
triadic
#4E40B6 #B64E40 #40B64E
tetradic
#4E40B6 #B6406D #A8B640 #40B689
square
#4E40B6 #B6406D #A8B640 #40B689
split-complementary
#4E40B6 #B68940 #6DB640
monochromatic
#27205B #3B3089 #4E40B6 #7569CA #9E96DA

Accessibility & contrast

On white

7.68
#4E40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4E40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B6
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B6#FFFFFF#000000##FFFFFF
##4E40B61.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#165E75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e40b6;
/* rgb */ color: rgb(78, 64, 182);
/* oklch */ color: oklch(45.9% 0.179 282.1);
Tailwind
colors: {
  custom: {
    50: '#8a76cd',
    500: '#4e40b6',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b6;
$custom-light: #8a76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b6",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 247.119,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45895,
    "c": 0.17855,
    "h": 282.1
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#4E40B6
secondary
#BFC68C
accent
#D850C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4E40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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