#4E4787#4E4787

#4E4787 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.7% C 0.103 H 286.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4E4787
RGBrgb(78, 71, 135)
HSLhsl(247, 31%, 40%)
HSVhsv(247, 47%, 53%)
CMYKcmyk(42.2%, 47.4%, 0%, 47.1%)
CIE-LABlab(33.72, 19.88, -34.96)
CIE-LCHlch(33.72, 40.21, 299.63°)
OKLaboklab(43.65% 0.0289 -0.0988)
OKLCHoklch(43.65% 0.103 286.3)
XYZxyz(9.7671, 7.8751, 23.9224)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4787 #808747
analogous
#476087 #4E4787 #6E4787
triadic
#4E4787 #874E47 #47874E
tetradic
#4E4787 #874760 #808747 #47876E
square
#4E4787 #874760 #808747 #47876E
split-complementary
#4E4787 #876E47 #608747
monochromatic
#201D37 #37325F #4E4787 #6860AB #8E88C0

Accessibility & contrast

On white

8.16
#4E4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4787
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4787#FFFFFF#000000##FFFFFF
##4E47871.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#3E5460
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e4787;
/* rgb */ color: rgb(78, 71, 135);
/* oklch */ color: oklch(43.7% 0.103 286.3);
Tailwind
colors: {
  custom: {
    50: '#837aaa',
    500: '#4e4787',
    950: '#000000',
  },
}
SCSS
$custom: #4e4787;
$custom-light: #837aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4787",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 246.563,
    "s": 31.068,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43652,
    "c": 0.10298,
    "h": 286.3
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#4E4787
secondary
#A7AC7E
accent
#C761BC
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4E4787

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

Preview Lab → · Contrast checker → · Palette generator →

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