#4E4877#4E4877

#4E4877 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.9% C 0.077 H 288.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4E4877
RGBrgb(78, 72, 119)
HSLhsl(248, 25%, 37%)
HSVhsv(248, 39%, 47%)
CMYKcmyk(34.5%, 39.5%, 0%, 53.3%)
CIE-LABlab(33.11, 14.43, -26.01)
CIE-LCHlch(33.11, 29.74, 299.02°)
OKLaboklab(42.89% 0.0245 -0.0728)
OKLCHoklch(42.89% 0.077 288.6)
XYZxyz(8.7881, 7.5861, 18.4504)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4877 #717748
analogous
#485977 #4E4877 #664877
triadic
#4E4877 #774E48 #48774E
tetradic
#4E4877 #774859 #717748 #487766
square
#4E4877 #774859 #717748 #487766
split-complementary
#4E4877 #776648 #597748
monochromatic
#1C1A2B #353151 #4E4877 #675F9D #8B85B5

Accessibility & contrast

On white

8.34
#4E4877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E4877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4877
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4877#FFFFFF#000000##FFFFFF
##4E48771.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4F79
Deuteranopia (green-blind)
#3A4D76
Tritanopia (blue-blind)
#44515A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e4877;
/* rgb */ color: rgb(78, 72, 119);
/* oklch */ color: oklch(42.9% 0.077 288.6);
Tailwind
colors: {
  custom: {
    50: '#817b9e',
    500: '#4e4877',
    950: '#000000',
  },
}
SCSS
$custom: #4e4877;
$custom-light: #817b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4877",
  "rgb": {
    "r": 78,
    "g": 72,
    "b": 119
  },
  "hsl": {
    "h": 247.66,
    "s": 24.607,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42894,
    "c": 0.07676,
    "h": 288.6
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#4E4877
secondary
#9CA17A
accent
#C167B6
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A090E
muted
#7C7B7E

Preview Lab

Preview with #4E4877

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

Preview Lab → · Contrast checker → · Palette generator →

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