#4E40AD#4E40AD

#4E40AD is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.167 H 283.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4E40AD
RGBrgb(78, 64, 173)
HSLhsl(248, 46%, 46%)
HSVhsv(248, 63%, 68%)
CMYKcmyk(54.9%, 63%, 0%, 32.2%)
CIE-LABlab(34.61, 36.25, -56.55)
CIE-LCHlch(34.61, 67.17, 302.66°)
OKLaboklab(45.14% 0.0383 -0.1623)
OKLCHoklch(45.14% 0.167 283.3)
XYZxyz(12.5158, 8.3029, 40.4702)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40AD #9FAD40
analogous
#4069AD #4E40AD #8540AD
triadic
#4E40AD #AD4E40 #40AD4E
tetradic
#4E40AD #AD4069 #9FAD40 #40AD85
square
#4E40AD #AD4069 #9FAD40 #40AD85
split-complementary
#4E40AD #AD8540 #69AD40
monochromatic
#261F54 #3A2F80 #4E40AD #7164C6 #9A91D6

Accessibility & contrast

On white

7.89
#4E40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4E40AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40AD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40AD#FFFFFF#000000##FFFFFF
##4E40AD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#235B70
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e40ad;
/* rgb */ color: rgb(78, 64, 173);
/* oklch */ color: oklch(45.1% 0.167 283.3);
Tailwind
colors: {
  custom: {
    50: '#8875c6',
    500: '#4e40ad',
    950: '#000000',
  },
}
SCSS
$custom: #4e40ad;
$custom-light: #8875c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40ad",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 247.706,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45144,
    "c": 0.16678,
    "h": 283.3
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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