#4E40A4#4E40A4

#4E40A4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.155 H 284.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4E40A4
RGBrgb(78, 64, 164)
HSLhsl(248, 44%, 45%)
HSVhsv(248, 61%, 64%)
CMYKcmyk(52.4%, 61%, 0%, 35.7%)
CIE-LABlab(33.91, 33.40, -52.29)
CIE-LCHlch(33.91, 62.05, 302.57°)
OKLaboklab(44.42% 0.0389 -0.1498)
OKLCHoklch(44.42% 0.155 284.5)
XYZxyz(11.6741, 7.9662, 36.0373)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A4 #96A440
analogous
#4064A4 #4E40A4 #8040A4
triadic
#4E40A4 #A44E40 #40A44E
tetradic
#4E40A4 #A44064 #96A440 #40A480
square
#4E40A4 #A44064 #96A440 #40A480
split-complementary
#4E40A4 #A48040 #64A440
monochromatic
#241E4C #392F78 #4E40A4 #6E60C1 #968CD2

Accessibility & contrast

On white

8.10
#4E40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4E40A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A4
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A4#FFFFFF#000000##FFFFFF
##4E40A41.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#2C586C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a4;
/* rgb */ color: rgb(78, 64, 164);
/* oklch */ color: oklch(44.4% 0.155 284.5);
Tailwind
colors: {
  custom: {
    50: '#8775c0',
    500: '#4e40a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a4;
$custom-light: #8775c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a4",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 248.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44419,
    "c": 0.15475,
    "h": 284.5
  },
  "luminance": 0.07967
}

Semantic roles & 50–950 ramp

primary
#4E40A4
secondary
#B5BD83
accent
#D454C2
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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