#4E42AB#4E42AB

#4E42AB is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.161 H 283.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4E42AB
RGBrgb(78, 66, 171)
HSLhsl(247, 44%, 46%)
HSVhsv(247, 61%, 67%)
CMYKcmyk(54.4%, 61.4%, 0%, 32.9%)
CIE-LABlab(34.91, 34.39, -54.85)
CIE-LCHlch(34.91, 64.74, 302.09°)
OKLaboklab(45.32% 0.0364 -0.1573)
OKLCHoklch(45.32% 0.161 283)
XYZxyz(12.4385, 8.4557, 39.4969)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42AB #9FAB42
analogous
#426BAB #4E42AB #8342AB
triadic
#4E42AB #AB4E42 #42AB4E
tetradic
#4E42AB #AB426B #9FAB42 #42AB83
square
#4E42AB #AB426B #9FAB42 #42AB83
split-complementary
#4E42AB #AB8342 #6BAB42
monochromatic
#262053 #3A317F #4E42AB #7166C4 #9A92D5

Accessibility & contrast

On white

7.80
#4E42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4E42AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42AB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42AB#FFFFFF#000000##FFFFFF
##4E42AB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#255B70
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e42ab;
/* rgb */ color: rgb(78, 66, 171);
/* oklch */ color: oklch(45.3% 0.161 283.0);
Tailwind
colors: {
  custom: {
    50: '#8877c5',
    500: '#4e42ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e42ab;
$custom-light: #8877c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42ab",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 246.857,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.16149,
    "h": 283
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#4E42AB
secondary
#BAC088
accent
#D454C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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