#4E42A3#4E42A3

#4E42A3 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.7% C 0.151 H 284.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4E42A3
RGBrgb(78, 66, 163)
HSLhsl(247, 42%, 45%)
HSVhsv(247, 60%, 64%)
CMYKcmyk(52.1%, 59.5%, 0%, 36.1%)
CIE-LABlab(34.31, 31.85, -51.04)
CIE-LCHlch(34.31, 60.16, 301.97°)
OKLaboklab(44.69% 0.0367 -0.1461)
OKLCHoklch(44.69% 0.151 284.1)
XYZxyz(11.6990, 8.1599, 35.6018)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A3 #97A342
analogous
#4266A3 #4E42A3 #7F42A3
triadic
#4E42A3 #A34E42 #42A34E
tetradic
#4E42A3 #A34266 #97A342 #42A37F
square
#4E42A3 #A34266 #97A342 #42A37F
split-complementary
#4E42A3 #A37F42 #66A342
monochromatic
#241F4C #393077 #4E42A3 #6E63C0 #968ED1

Accessibility & contrast

On white

7.98
#4E42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4E42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A3
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A3#FFFFFF#000000##FFFFFF
##4E42A31.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#2D596C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a3;
/* rgb */ color: rgb(78, 66, 163);
/* oklch */ color: oklch(44.7% 0.151 284.1);
Tailwind
colors: {
  custom: {
    50: '#8777bf',
    500: '#4e42a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a3;
$custom-light: #8777bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a3",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 247.423,
    "s": 42.358,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.15066,
    "h": 284.1
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#4E42A3
secondary
#B6BC84
accent
#D256C3
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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