#4E40A6#4E40A6

#4E40A6 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.157 H 284.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4E40A6
RGBrgb(78, 64, 166)
HSLhsl(248, 44%, 45%)
HSVhsv(248, 61%, 65%)
CMYKcmyk(53%, 61.4%, 0%, 34.9%)
CIE-LABlab(34.06, 34.03, -53.24)
CIE-LCHlch(34.06, 63.19, 302.59°)
OKLaboklab(44.58% 0.0388 -0.1526)
OKLCHoklch(44.58% 0.157 284.3)
XYZxyz(11.8561, 8.0390, 36.9960)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A6 #98A640
analogous
#4065A6 #4E40A6 #8140A6
triadic
#4E40A6 #A64E40 #40A64E
tetradic
#4E40A6 #A64065 #98A640 #40A681
square
#4E40A6 #A64065 #98A640 #40A681
split-complementary
#4E40A6 #A68140 #65A640
monochromatic
#241E4E #392F7A #4E40A6 #6E61C2 #978DD3

Accessibility & contrast

On white

8.05
#4E40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4E40A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A6
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A6#FFFFFF#000000##FFFFFF
##4E40A61.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#2A586D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a6;
/* rgb */ color: rgb(78, 64, 166);
/* oklch */ color: oklch(44.6% 0.157 284.3);
Tailwind
colors: {
  custom: {
    50: '#8775c1',
    500: '#4e40a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a6;
$custom-light: #8775c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a6",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 248.235,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44578,
    "c": 0.15745,
    "h": 284.3
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#4E40A6
secondary
#B6BE84
accent
#D454C2
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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