#4E40A3#4E40A3

#4E40A3 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.153 H 284.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4E40A3
RGBrgb(78, 64, 163)
HSLhsl(248, 44%, 45%)
HSVhsv(248, 61%, 64%)
CMYKcmyk(52.1%, 60.7%, 0%, 36.1%)
CIE-LABlab(33.84, 33.09, -51.81)
CIE-LCHlch(33.84, 61.47, 302.56°)
OKLaboklab(44.34% 0.0389 -0.1484)
OKLCHoklch(44.34% 0.153 284.7)
XYZxyz(11.5842, 7.9302, 35.5635)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A3 #95A340
analogous
#4064A3 #4E40A3 #8040A3
triadic
#4E40A3 #A34E40 #40A34E
tetradic
#4E40A3 #A34064 #95A340 #40A380
square
#4E40A3 #A34064 #95A340 #40A380
split-complementary
#4E40A3 #A38040 #64A340
monochromatic
#241D4B #392F77 #4E40A3 #6D60C0 #968CD2

Accessibility & contrast

On white

8.12
#4E40A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E40A3
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A3#FFFFFF#000000##FFFFFF
##4E40A31.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#004CA1
Tritanopia (blue-blind)
#2D576B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a3;
/* rgb */ color: rgb(78, 64, 163);
/* oklch */ color: oklch(44.3% 0.153 284.7);
Tailwind
colors: {
  custom: {
    50: '#8775bf',
    500: '#4e40a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a3;
$custom-light: #8775bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a3",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 248.485,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4434,
    "c": 0.15341,
    "h": 284.7
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#4E40A3
secondary
#B4BD82
accent
#D354C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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