#4E42B3#4E42B3

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

Color values

HEX#4E42B3
RGBrgb(78, 66, 179)
HSLhsl(246, 46%, 48%)
HSVhsv(246, 63%, 70%)
CMYKcmyk(56.4%, 63.1%, 0%, 29.8%)
CIE-LABlab(35.54, 36.94, -58.60)
CIE-LCHlch(35.54, 69.27, 302.23°)
OKLaboklab(45.97% 0.0359 -0.1683)
OKLCHoklch(45.97% 0.172 282)
XYZxyz(13.2243, 8.7700, 43.6350)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42B3 #A7B342
analogous
#426EB3 #4E42B3 #8642B3
triadic
#4E42B3 #B34E42 #42B34E
tetradic
#4E42B3 #B3426E #A7B342 #42B386
square
#4E42B3 #B3426E #A7B342 #42B386
split-complementary
#4E42B3 #B38642 #6EB342
monochromatic
#27215A #3B3286 #4E42B3 #746AC8 #9E97D9

Accessibility & contrast

On white

7.62
#4E42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E42B3
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42B3#FFFFFF#000000##FFFFFF
##4E42B31.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#1B5E74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e42b3;
/* rgb */ color: rgb(78, 66, 179);
/* oklch */ color: oklch(46.0% 0.172 282.0);
Tailwind
colors: {
  custom: {
    50: '#8977cb',
    500: '#4e42b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e42b3;
$custom-light: #8977cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42b3",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 246.372,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45973,
    "c": 0.17212,
    "h": 282
  },
  "luminance": 0.08771
}

Semantic roles & 50–950 ramp

primary
#4E42B3
secondary
#BEC48C
accent
#D652C8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #4E42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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