#4E40A1#4E40A1

#4E40A1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.151 H 285.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4E40A1
RGBrgb(78, 64, 161)
HSLhsl(249, 43%, 44%)
HSVhsv(249, 60%, 63%)
CMYKcmyk(51.6%, 60.2%, 0%, 36.9%)
CIE-LABlab(33.69, 32.46, -50.85)
CIE-LCHlch(33.69, 60.32, 302.55°)
OKLaboklab(44.18% 0.039 -0.1456)
OKLCHoklch(44.18% 0.151 285)
XYZxyz(11.4064, 7.8591, 34.6272)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A1 #93A140
analogous
#4063A1 #4E40A1 #7F40A1
triadic
#4E40A1 #A14E40 #40A14E
tetradic
#4E40A1 #A14063 #93A140 #40A17F
square
#4E40A1 #A14063 #93A140 #40A17F
split-complementary
#4E40A1 #A17F40 #63A140
monochromatic
#241D49 #392F75 #4E40A1 #6D5FBF #958BD1

Accessibility & contrast

On white

8.16
#4E40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A1
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A1#FFFFFF#000000##FFFFFF
##4E40A11.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#2F576A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e40a1;
/* rgb */ color: rgb(78, 64, 161);
/* oklch */ color: oklch(44.2% 0.151 285.0);
Tailwind
colors: {
  custom: {
    50: '#8775bd',
    500: '#4e40a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a1;
$custom-light: #8775bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a1",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 248.66,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44183,
    "c": 0.15069,
    "h": 285
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#4E40A1
secondary
#B3BC81
accent
#D355C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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