#4E4791#4E4791

#4E4791 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 44.3% C 0.118 H 284.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4E4791
RGBrgb(78, 71, 145)
HSLhsl(246, 34%, 42%)
HSVhsv(246, 51%, 57%)
CMYKcmyk(46.2%, 51%, 0%, 43.1%)
CIE-LABlab(34.33, 22.99, -40.10)
CIE-LCHlch(34.33, 46.23, 299.82°)
OKLaboklab(44.31% 0.0301 -0.1139)
OKLCHoklch(44.31% 0.118 284.8)
XYZxyz(10.5045, 8.1701, 27.8061)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4791 #8A9147
analogous
#476591 #4E4791 #734791
triadic
#4E4791 #914E47 #47914E
tetradic
#4E4791 #914765 #8A9147 #479173
square
#4E4791 #914765 #8A9147 #479173
split-complementary
#4E4791 #917347 #659147
monochromatic
#221F3F #383368 #4E4791 #6A63B2 #918CC7

Accessibility & contrast

On white

7.97
#4E4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4E4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4791
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4791#FFFFFF#000000##FFFFFF
##4E47911.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#244E8F
Tritanopia (blue-blind)
#385765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e4791;
/* rgb */ color: rgb(78, 71, 145);
/* oklch */ color: oklch(44.3% 0.118 284.8);
Tailwind
colors: {
  custom: {
    50: '#847ab2',
    500: '#4e4791',
    950: '#000000',
  },
}
SCSS
$custom: #4e4791;
$custom-light: #847ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4791",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 245.676,
    "s": 34.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44312,
    "c": 0.11785,
    "h": 284.8
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#4E4791
secondary
#AEB282
accent
#CA5DC0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #4E4791

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

Preview Lab → · Contrast checker → · Palette generator →

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