#4E4887#4E4887

#4E4887 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.9% C 0.101 H 285.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#4E4887
RGBrgb(78, 72, 135)
HSLhsl(246, 30%, 41%)
HSVhsv(246, 47%, 53%)
CMYKcmyk(42.2%, 46.7%, 0%, 47.1%)
CIE-LABlab(33.99, 19.23, -34.53)
CIE-LCHlch(33.99, 39.52, 299.12°)
OKLaboklab(43.86% 0.0276 -0.0976)
OKLCHoklch(43.86% 0.101 285.8)
XYZxyz(9.8312, 8.0033, 23.9438)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4887 #818748
analogous
#486187 #4E4887 #6D4887
triadic
#4E4887 #874E48 #48874E
tetradic
#4E4887 #874861 #818748 #48876D
square
#4E4887 #874861 #818748 #48876D
split-complementary
#4E4887 #876D48 #618748
monochromatic
#201D37 #37335F #4E4887 #6861AB #8E89C0

Accessibility & contrast

On white

8.07
#4E4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4E4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4887
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4887#FFFFFF#000000##FFFFFF
##4E48871.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315289
Deuteranopia (green-blind)
#2F4E86
Tritanopia (blue-blind)
#3D5561
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e4887;
/* rgb */ color: rgb(78, 72, 135);
/* oklch */ color: oklch(43.9% 0.101 285.8);
Tailwind
colors: {
  custom: {
    50: '#837baa',
    500: '#4e4887',
    950: '#000000',
  },
}
SCSS
$custom: #4e4887;
$custom-light: #837baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4887",
  "rgb": {
    "r": 78,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 245.714,
    "s": 30.435,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43855,
    "c": 0.1014,
    "h": 285.8
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#4E4887
secondary
#A8AC7F
accent
#C761BD
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4E4887

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

Preview Lab → · Contrast checker → · Palette generator →

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