#4E42AF#4E42AF

#4E42AF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.167 H 282.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4E42AF
RGBrgb(78, 66, 175)
HSLhsl(247, 45%, 47%)
HSVhsv(247, 62%, 69%)
CMYKcmyk(55.4%, 62.3%, 0%, 31.4%)
CIE-LABlab(35.22, 35.67, -56.73)
CIE-LCHlch(35.22, 67.01, 302.16°)
OKLaboklab(45.65% 0.0362 -0.1629)
OKLCHoklch(45.65% 0.167 282.5)
XYZxyz(12.8256, 8.6105, 41.5353)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42AF #A3AF42
analogous
#426CAF #4E42AF #8542AF
triadic
#4E42AF #AF4E42 #42AF4E
tetradic
#4E42AF #AF426C #A3AF42 #42AF85
square
#4E42AF #AF426C #A3AF42 #42AF85
split-complementary
#4E42AF #AF8542 #6CAF42
monochromatic
#262056 #3A3183 #4E42AF #7268C6 #9C95D7

Accessibility & contrast

On white

7.71
#4E42AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4E42AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42AF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42AF#FFFFFF#000000##FFFFFF
##4E42AF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#215C72
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e42af;
/* rgb */ color: rgb(78, 66, 175);
/* oklch */ color: oklch(45.6% 0.167 282.5);
Tailwind
colors: {
  custom: {
    50: '#8977c8',
    500: '#4e42af',
    950: '#000000',
  },
}
SCSS
$custom: #4e42af;
$custom-light: #8977c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42af",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 246.606,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45645,
    "c": 0.16683,
    "h": 282.5
  },
  "luminance": 0.08611
}

Semantic roles & 50–950 ramp

primary
#4E42AF
secondary
#BCC28A
accent
#D553C7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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