#4E4987#4E4987

#4E4987 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 44.1% C 0.100 H 285.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4E4987
RGBrgb(78, 73, 135)
HSLhsl(245, 30%, 41%)
HSVhsv(245, 46%, 53%)
CMYKcmyk(42.2%, 45.9%, 0%, 47.1%)
CIE-LABlab(34.26, 18.59, -34.10)
CIE-LCHlch(34.26, 38.84, 298.59°)
OKLaboklab(44.06% 0.0262 -0.0963)
OKLCHoklch(44.06% 0.1 285.2)
XYZxyz(9.8964, 8.1337, 23.9655)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4987 #828749
analogous
#496387 #4E4987 #6D4987
triadic
#4E4987 #874E49 #49874E
tetradic
#4E4987 #874963 #828749 #49876D
square
#4E4987 #874963 #828749 #49876D
split-complementary
#4E4987 #876D49 #638749
monochromatic
#201E38 #37345F #4E4987 #6863AA #8F8AC0

Accessibility & contrast

On white

7.99
#4E4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E4987
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4987#FFFFFF#000000##FFFFFF
##4E49871.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#304F86
Tritanopia (blue-blind)
#3D5561
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e4987;
/* rgb */ color: rgb(78, 73, 135);
/* oklch */ color: oklch(44.1% 0.100 285.2);
Tailwind
colors: {
  custom: {
    50: '#837baa',
    500: '#4e4987',
    950: '#000000',
  },
}
SCSS
$custom: #4e4987;
$custom-light: #837baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4987",
  "rgb": {
    "r": 78,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 244.839,
    "s": 29.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44059,
    "c": 0.09982,
    "h": 285.2
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#4E4987
secondary
#A8AC80
accent
#C662BE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4E4987

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

Preview Lab → · Contrast checker → · Palette generator →

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