#4E42B7#4E42B7

#4E42B7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.177 H 281.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#4E42B7
RGBrgb(78, 66, 183)
HSLhsl(246, 47%, 49%)
HSVhsv(246, 64%, 72%)
CMYKcmyk(57.4%, 63.9%, 0%, 28.2%)
CIE-LABlab(35.86, 38.22, -60.44)
CIE-LCHlch(35.86, 71.51, 302.31°)
OKLaboklab(46.31% 0.0356 -0.1737)
OKLCHoklch(46.31% 0.177 281.6)
XYZxyz(13.6347, 8.9341, 45.7965)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42B7 #ABB742
analogous
#4271B7 #4E42B7 #8942B7
triadic
#4E42B7 #B74E42 #42B74E
tetradic
#4E42B7 #B74271 #ABB742 #42B789
square
#4E42B7 #B74271 #ABB742 #42B789
split-complementary
#4E42B7 #B78942 #71B742
monochromatic
#28225D #3B328A #4E42B7 #766CCA #A099DA

Accessibility & contrast

On white

7.53
#4E42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4E42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42B7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42B7#FFFFFF#000000##FFFFFF
##4E42B71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#145F76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e42b7;
/* rgb */ color: rgb(78, 66, 183);
/* oklch */ color: oklch(46.3% 0.177 281.6);
Tailwind
colors: {
  custom: {
    50: '#8a77cd',
    500: '#4e42b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e42b7;
$custom-light: #8a77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42b7",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 246.154,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46305,
    "c": 0.17736,
    "h": 281.6
  },
  "luminance": 0.08935
}

Semantic roles & 50–950 ramp

primary
#4E42B7
secondary
#C1C68F
accent
#D751C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4E42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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