#4E5178#4E5178

#4E5178 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 44.9% C 0.064 H 280.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#4E5178
RGBrgb(78, 81, 120)
HSLhsl(236, 21%, 39%)
HSVhsv(236, 35%, 47%)
CMYKcmyk(35%, 32.5%, 0%, 52.9%)
CIE-LABlab(35.71, 8.92, -22.55)
CIE-LCHlch(35.71, 24.25, 291.58°)
OKLaboklab(44.91% 0.0112 -0.0628)
OKLCHoklch(44.91% 0.064 280.1)
XYZxyz(9.4735, 8.8603, 18.9767)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5178 #78754E
analogous
#4E6678 #4E5178 #604E78
triadic
#4E5178 #784E51 #51784E
tetradic
#4E5178 #784E66 #78754E #4E7860
square
#4E5178 #784E66 #78754E #4E7860
split-complementary
#4E5178 #78604E #66784E
monochromatic
#1E1F2E #363853 #4E5178 #676B9C #8C8FB4

Accessibility & contrast

On white

7.58
#4E5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4E5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5178
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5178#FFFFFF#000000##FFFFFF
##4E51781.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45567A
Deuteranopia (green-blind)
#435377
Tritanopia (blue-blind)
#43585F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e5178;
/* rgb */ color: rgb(78, 81, 120);
/* oklch */ color: oklch(44.9% 0.064 280.1);
Tailwind
colors: {
  custom: {
    50: '#81819f',
    500: '#4e5178',
    950: '#000000',
  },
}
SCSS
$custom: #4e5178;
$custom-light: #81819f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5178",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 235.714,
    "s": 21.212,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44914,
    "c": 0.06378,
    "h": 280.1
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#4E5178
secondary
#A19F81
accent
#B86ABE
background
#F7F7F9
surface
#EEEEF2
border
#C9C9CC
text
#0A0A0E
muted
#7C7C7E

Preview Lab

Preview with #4E5178

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

Preview Lab → · Contrast checker → · Palette generator →

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