#4E42BA#4E42BA

#4E42BA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.6% C 0.181 H 281.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4E42BA
RGBrgb(78, 66, 186)
HSLhsl(246, 48%, 49%)
HSVhsv(246, 65%, 73%)
CMYKcmyk(58.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(36.10, 39.18, -61.81)
CIE-LCHlch(36.10, 73.18, 302.37°)
OKLaboklab(46.56% 0.0353 -0.1778)
OKLCHoklch(46.56% 0.181 281.2)
XYZxyz(13.9503, 9.0604, 47.4586)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42BA #AEBA42
analogous
#4272BA #4E42BA #8A42BA
triadic
#4E42BA #BA4E42 #42BA4E
tetradic
#4E42BA #BA4272 #AEBA42 #42BA8A
square
#4E42BA #BA4272 #AEBA42 #42BA8A
split-complementary
#4E42BA #BA8A42 #72BA42
monochromatic
#282260 #3B328D #4E42BA #776ECB #A19BDB

Accessibility & contrast

On white

7.47
#4E42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4E42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42BA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42BA#FFFFFF#000000##FFFFFF
##4E42BA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#0C6078
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e42ba;
/* rgb */ color: rgb(78, 66, 186);
/* oklch */ color: oklch(46.6% 0.181 281.2);
Tailwind
colors: {
  custom: {
    50: '#8a77d0',
    500: '#4e42ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e42ba;
$custom-light: #8a77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42ba",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 246,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46558,
    "c": 0.18125,
    "h": 281.2
  },
  "luminance": 0.09061
}

Semantic roles & 50–950 ramp

primary
#4E42BA
secondary
#C2C890
accent
#D751CA
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4E42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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