#4E41B5#4E41B5

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

Color values

HEX#4E41B5
RGBrgb(78, 65, 181)
HSLhsl(247, 47%, 48%)
HSVhsv(247, 64%, 71%)
CMYKcmyk(56.9%, 64.1%, 0%, 29%)
CIE-LABlab(35.47, 38.18, -59.89)
CIE-LCHlch(35.47, 71.03, 302.52°)
OKLaboklab(45.97% 0.0367 -0.1721)
OKLCHoklch(45.97% 0.176 282)
XYZxyz(13.3701, 8.7356, 44.6887)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E41B5 #A8B541
analogous
#416EB5 #4E41B5 #8841B5
triadic
#4E41B5 #B54E41 #41B54E
tetradic
#4E41B5 #B5416E #A8B541 #41B588
square
#4E41B5 #B5416E #A8B541 #41B588
split-complementary
#4E41B5 #B58841 #6EB541
monochromatic
#27215B #3B3188 #4E41B5 #756AC9 #9E97DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E41B5#FFFFFF#000000##FFFFFF
##4E41B51.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)
#0057B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#185E75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e41b5;
/* rgb */ color: rgb(78, 65, 181);
/* oklch */ color: oklch(46.0% 0.176 282.0);
Tailwind
colors: {
  custom: {
    50: '#8a76cc',
    500: '#4e41b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e41b5;
$custom-light: #8a76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e41b5",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 246.724,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.17601,
    "h": 282
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#4E41B5
secondary
#BFC58C
accent
#D751C8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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