#4E47A2#4E47A2

#4E47A2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.5% C 0.142 H 282.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4E47A2
RGBrgb(78, 71, 162)
HSLhsl(245, 39%, 46%)
HSVhsv(245, 56%, 64%)
CMYKcmyk(51.9%, 56.2%, 0%, 36.5%)
CIE-LABlab(35.47, 28.39, -48.57)
CIE-LCHlch(35.47, 56.26, 300.31°)
OKLaboklab(45.52% 0.0311 -0.1388)
OKLCHoklch(45.52% 0.142 282.6)
XYZxyz(11.9147, 8.7342, 35.2335)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E47A2 #9BA247
analogous
#476DA2 #4E47A2 #7B47A2
triadic
#4E47A2 #A24E47 #47A24E
tetradic
#4E47A2 #A2476D #9BA247 #47A27B
square
#4E47A2 #A2476D #9BA247 #47A27B
split-complementary
#4E47A2 #A27B47 #6DA247
monochromatic
#25224D #3A3477 #4E47A2 #6F69BD #9894D0

Accessibility & contrast

On white

7.64
#4E47A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4E47A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E47A2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E47A2#FFFFFF#000000##FFFFFF
##4E47A21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D56A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#2D5C6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e47a2;
/* rgb */ color: rgb(78, 71, 162);
/* oklch */ color: oklch(45.5% 0.142 282.6);
Tailwind
colors: {
  custom: {
    50: '#867abe',
    500: '#4e47a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e47a2;
$custom-light: #867abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e47a2",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 244.615,
    "s": 39.056,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45521,
    "c": 0.14226,
    "h": 282.6
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E47A2

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

Preview Lab → · Contrast checker → · Palette generator →

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