#4E42A5#4E42A5

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

Color values

HEX#4E42A5
RGBrgb(78, 66, 165)
HSLhsl(247, 43%, 45%)
HSVhsv(247, 60%, 65%)
CMYKcmyk(52.7%, 60%, 0%, 35.3%)
CIE-LABlab(34.46, 32.48, -52.00)
CIE-LCHlch(34.46, 61.31, 301.99°)
OKLaboklab(44.85% 0.0367 -0.1489)
OKLCHoklch(44.85% 0.153 283.8)
XYZxyz(11.8796, 8.2321, 36.5530)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A5 #99A542
analogous
#4267A5 #4E42A5 #8042A5
triadic
#4E42A5 #A54E42 #42A54E
tetradic
#4E42A5 #A54267 #99A542 #42A580
square
#4E42A5 #A54267 #99A542 #42A580
split-complementary
#4E42A5 #A58042 #67A542
monochromatic
#251F4E #393179 #4E42A5 #6F63C1 #978FD2

Accessibility & contrast

On white

7.93
#4E42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4E42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A5#FFFFFF#000000##FFFFFF
##4E42A51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#2B596D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a5;
/* rgb */ color: rgb(78, 66, 165);
/* oklch */ color: oklch(44.8% 0.153 283.8);
Tailwind
colors: {
  custom: {
    50: '#8777c0',
    500: '#4e42a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a5;
$custom-light: #8777c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a5",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 247.273,
    "s": 42.857,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44846,
    "c": 0.15338,
    "h": 283.8
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#4E42A5
secondary
#B7BD85
accent
#D355C3
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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