#4E42A4#4E42A4

#4E42A4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.152 H 284.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4E42A4
RGBrgb(78, 66, 164)
HSLhsl(247, 43%, 45%)
HSVhsv(247, 60%, 64%)
CMYKcmyk(52.4%, 59.8%, 0%, 35.7%)
CIE-LABlab(34.39, 32.17, -51.52)
CIE-LCHlch(34.39, 60.74, 301.98°)
OKLaboklab(44.77% 0.0367 -0.1475)
OKLCHoklch(44.77% 0.152 284)
XYZxyz(11.7889, 8.1958, 36.0755)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A4 #98A442
analogous
#4267A4 #4E42A4 #7F42A4
triadic
#4E42A4 #A44E42 #42A44E
tetradic
#4E42A4 #A44267 #98A442 #42A47F
square
#4E42A4 #A44267 #98A442 #42A47F
split-complementary
#4E42A4 #A47F42 #67A442
monochromatic
#241F4D #393078 #4E42A4 #6E63C0 #978FD2

Accessibility & contrast

On white

7.96
#4E42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4E42A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A4#FFFFFF#000000##FFFFFF
##4E42A41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#2C596C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a4;
/* rgb */ color: rgb(78, 66, 164);
/* oklch */ color: oklch(44.8% 0.152 284.0);
Tailwind
colors: {
  custom: {
    50: '#8777c0',
    500: '#4e42a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a4;
$custom-light: #8777c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a4",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 247.347,
    "s": 42.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44768,
    "c": 0.15202,
    "h": 284
  },
  "luminance": 0.08196
}

Semantic roles & 50–950 ramp

primary
#4E42A4
secondary
#B6BD85
accent
#D255C3
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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