#4E47A6#4E47A6

#4E47A6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.148 H 282.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4E47A6
RGBrgb(78, 71, 166)
HSLhsl(244, 40%, 46%)
HSVhsv(244, 57%, 65%)
CMYKcmyk(53%, 57.2%, 0%, 34.9%)
CIE-LABlab(35.75, 29.68, -50.51)
CIE-LCHlch(35.75, 58.59, 300.44°)
OKLaboklab(45.82% 0.0312 -0.1445)
OKLCHoklch(45.82% 0.148 282.2)
XYZxyz(12.2760, 8.8787, 37.1359)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E47A6 #9FA647
analogous
#4770A6 #4E47A6 #7E47A6
triadic
#4E47A6 #A64E47 #47A64E
tetradic
#4E47A6 #A64770 #9FA647 #47A67E
square
#4E47A6 #A64770 #9FA647 #47A67E
split-complementary
#4E47A6 #A67E47 #70A647
monochromatic
#262250 #3A357B #4E47A6 #716BC0 #9A96D2

Accessibility & contrast

On white

7.57
#4E47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4E47A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E47A6
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E47A6#FFFFFF#000000##FFFFFF
##4E47A61.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#295D6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e47a6;
/* rgb */ color: rgb(78, 71, 166);
/* oklch */ color: oklch(45.8% 0.148 282.2);
Tailwind
colors: {
  custom: {
    50: '#877ac1',
    500: '#4e47a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e47a6;
$custom-light: #877ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e47a6",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 244.421,
    "s": 40.084,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.14786,
    "h": 282.2
  },
  "luminance": 0.08879
}

Semantic roles & 50–950 ramp

primary
#4E47A6
secondary
#BABE8B
accent
#D058C7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4E47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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