#4E40AE#4E40AE

#4E40AE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.168 H 283.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4E40AE
RGBrgb(78, 64, 174)
HSLhsl(248, 46%, 47%)
HSVhsv(248, 63%, 68%)
CMYKcmyk(55.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(34.68, 36.56, -57.01)
CIE-LCHlch(34.68, 67.73, 302.67°)
OKLaboklab(45.23% 0.0383 -0.1637)
OKLCHoklch(45.23% 0.168 283.2)
XYZxyz(12.6129, 8.3417, 40.9817)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40AE #A0AE40
analogous
#4069AE #4E40AE #8540AE
triadic
#4E40AE #AE4E40 #40AE4E
tetradic
#4E40AE #AE4069 #A0AE40 #40AE85
square
#4E40AE #AE4069 #A0AE40 #40AE85
split-complementary
#4E40AE #AE8540 #69AE40
monochromatic
#261F55 #3A3081 #4E40AE #7165C6 #9A92D7

Accessibility & contrast

On white

7.87
#4E40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4E40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40AE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40AE#FFFFFF#000000##FFFFFF
##4E40AE1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#225B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40ae;
/* rgb */ color: rgb(78, 64, 174);
/* oklch */ color: oklch(45.2% 0.168 283.2);
Tailwind
colors: {
  custom: {
    50: '#8975c7',
    500: '#4e40ae',
    950: '#000000',
  },
}
SCSS
$custom: #4e40ae;
$custom-light: #8975c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40ae",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 247.636,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45227,
    "c": 0.1681,
    "h": 283.2
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#4E40AE
secondary
#BBC288
accent
#D652C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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