#4E4878#4E4878

#4E4878 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 43.0% C 0.078 H 288.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#4E4878
RGBrgb(78, 72, 120)
HSLhsl(248, 25%, 38%)
HSVhsv(248, 40%, 47%)
CMYKcmyk(35%, 40%, 0%, 52.9%)
CIE-LABlab(33.16, 14.72, -26.55)
CIE-LCHlch(33.16, 30.36, 299.01°)
OKLaboklab(42.95% 0.0247 -0.0743)
OKLCHoklch(42.95% 0.078 288.4)
XYZxyz(8.8485, 7.6103, 18.7684)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4878 #727848
analogous
#485A78 #4E4878 #664878
triadic
#4E4878 #784E48 #48784E
tetradic
#4E4878 #78485A #727848 #487866
square
#4E4878 #78485A #727848 #487866
split-complementary
#4E4878 #786648 #5A7848
monochromatic
#1C1A2B #353152 #4E4878 #675F9E #8B85B6

Accessibility & contrast

On white

8.33
#4E4878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E4878
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4878#FFFFFF#000000##FFFFFF
##4E48781.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394F7A
Deuteranopia (green-blind)
#394D77
Tritanopia (blue-blind)
#44515A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e4878;
/* rgb */ color: rgb(78, 72, 120);
/* oklch */ color: oklch(43.0% 0.078 288.4);
Tailwind
colors: {
  custom: {
    50: '#817b9f',
    500: '#4e4878',
    950: '#000000',
  },
}
SCSS
$custom: #4e4878;
$custom-light: #817b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4878",
  "rgb": {
    "r": 78,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 247.5,
    "s": 25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.07833,
    "h": 288.4
  },
  "luminance": 0.0761
}

Semantic roles & 50–950 ramp

primary
#4E4878
secondary
#9DA27A
accent
#C166B6
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A090E
muted
#7C7B7E

Preview Lab

Preview with #4E4878

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

Preview Lab → · Contrast checker → · Palette generator →

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