#4E42B4#4E42B4

#4E42B4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.173 H 281.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#4E42B4
RGBrgb(78, 66, 180)
HSLhsl(246, 46%, 48%)
HSVhsv(246, 63%, 71%)
CMYKcmyk(56.7%, 63.3%, 0%, 29.4%)
CIE-LABlab(35.62, 37.26, -59.06)
CIE-LCHlch(35.62, 69.83, 302.25°)
OKLaboklab(46.06% 0.0358 -0.1697)
OKLCHoklch(46.06% 0.173 281.9)
XYZxyz(13.3258, 8.8106, 44.1696)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42B4 #A8B442
analogous
#426FB4 #4E42B4 #8742B4
triadic
#4E42B4 #B44E42 #42B44E
tetradic
#4E42B4 #B4426F #A8B442 #42B487
square
#4E42B4 #B4426F #A8B442 #42B487
split-complementary
#4E42B4 #B48742 #6FB442
monochromatic
#27215A #3B3287 #4E42B4 #756BC9 #9E97D9

Accessibility & contrast

On white

7.60
#4E42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4E42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42B4
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42B4#FFFFFF#000000##FFFFFF
##4E42B41.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#195E75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4e42b4;
/* rgb */ color: rgb(78, 66, 180);
/* oklch */ color: oklch(46.1% 0.173 281.9);
Tailwind
colors: {
  custom: {
    50: '#8977cb',
    500: '#4e42b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e42b4;
$custom-light: #8977cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42b4",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 246.316,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46055,
    "c": 0.17343,
    "h": 281.9
  },
  "luminance": 0.08811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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