#4E42AA#4E42AA

#4E42AA is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.160 H 283.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4E42AA
RGBrgb(78, 66, 170)
HSLhsl(247, 44%, 46%)
HSVhsv(247, 61%, 67%)
CMYKcmyk(54.1%, 61.2%, 0%, 33.3%)
CIE-LABlab(34.84, 34.07, -54.38)
CIE-LCHlch(34.84, 64.17, 302.07°)
OKLaboklab(45.24% 0.0365 -0.1559)
OKLCHoklch(45.24% 0.16 283.2)
XYZxyz(12.3436, 8.4177, 38.9968)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42AA #9EAA42
analogous
#426AAA #4E42AA #8242AA
triadic
#4E42AA #AA4E42 #42AA4E
tetradic
#4E42AA #AA426A #9EAA42 #42AA82
square
#4E42AA #AA426A #9EAA42 #42AA82
split-complementary
#4E42AA #AA8242 #6AAA42
monochromatic
#262052 #3A317E #4E42AA #7166C3 #9A92D5

Accessibility & contrast

On white

7.83
#4E42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4E42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42AA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42AA#FFFFFF#000000##FFFFFF
##4E42AA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#265B6F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e42aa;
/* rgb */ color: rgb(78, 66, 170);
/* oklch */ color: oklch(45.2% 0.160 283.2);
Tailwind
colors: {
  custom: {
    50: '#8877c4',
    500: '#4e42aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e42aa;
$custom-light: #8877c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42aa",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 246.923,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.16015,
    "h": 283.2
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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