#4E40A5#4E40A5

#4E40A5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.156 H 284.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4E40A5
RGBrgb(78, 64, 165)
HSLhsl(248, 44%, 45%)
HSVhsv(248, 61%, 65%)
CMYKcmyk(52.7%, 61.2%, 0%, 35.3%)
CIE-LABlab(33.99, 33.72, -52.77)
CIE-LCHlch(33.99, 62.62, 302.58°)
OKLaboklab(44.5% 0.0388 -0.1512)
OKLCHoklch(44.5% 0.156 284.4)
XYZxyz(11.7648, 8.0025, 36.5147)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A5 #97A540
analogous
#4064A5 #4E40A5 #8140A5
triadic
#4E40A5 #A54E40 #40A54E
tetradic
#4E40A5 #A54064 #97A540 #40A581
square
#4E40A5 #A54064 #97A540 #40A581
split-complementary
#4E40A5 #A58140 #64A540
monochromatic
#241E4D #392F79 #4E40A5 #6E61C2 #968DD3

Accessibility & contrast

On white

8.08
#4E40A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4E40A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A5
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A5#FFFFFF#000000##FFFFFF
##4E40A51.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#2B586C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a5;
/* rgb */ color: rgb(78, 64, 165);
/* oklch */ color: oklch(44.5% 0.156 284.4);
Tailwind
colors: {
  custom: {
    50: '#8775c0',
    500: '#4e40a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a5;
$custom-light: #8775c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a5",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 248.317,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44498,
    "c": 0.1561,
    "h": 284.4
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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