#4E478B#4E478B

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

Color values

HEX#4E478B
RGBrgb(78, 71, 139)
HSLhsl(246, 32%, 41%)
HSVhsv(246, 49%, 55%)
CMYKcmyk(43.9%, 48.9%, 0%, 45.5%)
CIE-LABlab(33.96, 21.11, -37.03)
CIE-LCHlch(33.96, 42.63, 299.69°)
OKLaboklab(43.91% 0.0295 -0.1049)
OKLCHoklch(43.91% 0.109 285.7)
XYZxyz(10.0540, 7.9899, 25.4335)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E478B #848B47
analogous
#47628B #4E478B #70478B
triadic
#4E478B #8B4E47 #478B4E
tetradic
#4E478B #8B4762 #848B47 #478B70
square
#4E478B #8B4762 #848B47 #478B70
split-complementary
#4E478B #8B7047 #628B47
monochromatic
#211E3A #373262 #4E478B #6961AE #8F89C3

Accessibility & contrast

On white

8.08
#4E478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E478B
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E478B#FFFFFF#000000##FFFFFF
##4E478B1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528D
Deuteranopia (green-blind)
#2A4E89
Tritanopia (blue-blind)
#3C5562
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e478b;
/* rgb */ color: rgb(78, 71, 139);
/* oklch */ color: oklch(43.9% 0.109 285.7);
Tailwind
colors: {
  custom: {
    50: '#837aad',
    500: '#4e478b',
    950: '#000000',
  },
}
SCSS
$custom: #4e478b;
$custom-light: #837aad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e478b",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 246.176,
    "s": 32.381,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43911,
    "c": 0.10898,
    "h": 285.7
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#4E478B
secondary
#AAAE7F
accent
#C95FBE
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4E478B

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

Preview Lab → · Contrast checker → · Palette generator →

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