#4E47A1#4E47A1

#4E47A1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.141 H 282.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4E47A1
RGBrgb(78, 71, 161)
HSLhsl(245, 39%, 45%)
HSVhsv(245, 56%, 63%)
CMYKcmyk(51.6%, 55.9%, 0%, 36.9%)
CIE-LABlab(35.40, 28.07, -48.08)
CIE-LCHlch(35.40, 55.68, 300.28°)
OKLaboklab(45.45% 0.0311 -0.1374)
OKLCHoklch(45.45% 0.141 282.8)
XYZxyz(11.8262, 8.6987, 34.7672)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E47A1 #9AA147
analogous
#476DA1 #4E47A1 #7B47A1
triadic
#4E47A1 #A14E47 #47A14E
tetradic
#4E47A1 #A1476D #9AA147 #47A17B
square
#4E47A1 #A1476D #9AA147 #47A17B
split-complementary
#4E47A1 #A17B47 #6DA147
monochromatic
#25224C #393477 #4E47A1 #6F69BD #9893CF

Accessibility & contrast

On white

7.66
#4E47A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4E47A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E47A1
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E47A1#FFFFFF#000000##FFFFFF
##4E47A11.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F56A4
Deuteranopia (green-blind)
#03509F
Tritanopia (blue-blind)
#2E5B6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e47a1;
/* rgb */ color: rgb(78, 71, 161);
/* oklch */ color: oklch(45.4% 0.141 282.8);
Tailwind
colors: {
  custom: {
    50: '#867abd',
    500: '#4e47a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e47a1;
$custom-light: #867abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e47a1",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 161
  },
  "hsl": {
    "h": 244.667,
    "s": 38.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45447,
    "c": 0.14086,
    "h": 282.8
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#4E47A1
secondary
#B7BB89
accent
#CF59C6
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E47A1

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

Preview Lab → · Contrast checker → · Palette generator →

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