#4E4786#4E4786

#4E4786 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.6% C 0.101 H 286.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4E4786
RGBrgb(78, 71, 134)
HSLhsl(247, 31%, 40%)
HSVhsv(247, 47%, 53%)
CMYKcmyk(41.8%, 47%, 0%, 47.5%)
CIE-LABlab(33.66, 19.57, -34.43)
CIE-LCHlch(33.66, 39.61, 299.61°)
OKLaboklab(43.59% 0.0288 -0.0973)
OKLCHoklch(43.59% 0.101 286.5)
XYZxyz(9.6970, 7.8471, 23.5533)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4786 #7F8647
analogous
#475F86 #4E4786 #6E4786
triadic
#4E4786 #864E47 #47864E
tetradic
#4E4786 #86475F #7F8647 #47866E
square
#4E4786 #86475F #7F8647 #47866E
split-complementary
#4E4786 #866E47 #5F8647
monochromatic
#1F1D36 #37325E #4E4786 #6860AB #8E88C0

Accessibility & contrast

On white

8.17
#4E4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4786
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4786#FFFFFF#000000##FFFFFF
##4E47861.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e4786;
/* rgb */ color: rgb(78, 71, 134);
/* oklch */ color: oklch(43.6% 0.101 286.5);
Tailwind
colors: {
  custom: {
    50: '#837aa9',
    500: '#4e4786',
    950: '#000000',
  },
}
SCSS
$custom: #4e4786;
$custom-light: #837aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4786",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 246.667,
    "s": 30.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43588,
    "c": 0.10147,
    "h": 286.5
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E4786

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

Preview Lab → · Contrast checker → · Palette generator →

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