#4E41B2#4E41B2

#4E41B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.172 H 282.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4E41B2
RGBrgb(78, 65, 178)
HSLhsl(247, 47%, 48%)
HSVhsv(247, 63%, 70%)
CMYKcmyk(56.2%, 63.5%, 0%, 30.2%)
CIE-LABlab(35.23, 37.23, -58.50)
CIE-LCHlch(35.23, 69.35, 302.47°)
OKLaboklab(45.72% 0.0369 -0.1681)
OKLCHoklch(45.72% 0.172 282.4)
XYZxyz(13.0656, 8.6138, 43.0850)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E41B2 #A5B241
analogous
#416CB2 #4E41B2 #8741B2
triadic
#4E41B2 #B24E41 #41B24E
tetradic
#4E41B2 #B2416C #A5B241 #41B287
square
#4E41B2 #B2416C #A5B241 #41B287
split-complementary
#4E41B2 #B28741 #6CB241
monochromatic
#272058 #3A3185 #4E41B2 #7368C8 #9D95D8

Accessibility & contrast

On white

7.71
#4E41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4E41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E41B2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E41B2#FFFFFF#000000##FFFFFF
##4E41B21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#1D5D73
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e41b2;
/* rgb */ color: rgb(78, 65, 178);
/* oklch */ color: oklch(45.7% 0.172 282.4);
Tailwind
colors: {
  custom: {
    50: '#8976ca',
    500: '#4e41b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e41b2;
$custom-light: #8976ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e41b2",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 246.903,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.17208,
    "h": 282.4
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#4E41B2
secondary
#BDC48B
accent
#D652C7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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