#4E42A7#4E42A7

#4E42A7 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.156 H 283.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4E42A7
RGBrgb(78, 66, 167)
HSLhsl(247, 43%, 46%)
HSVhsv(247, 60%, 65%)
CMYKcmyk(53.3%, 60.5%, 0%, 34.5%)
CIE-LABlab(34.61, 33.12, -52.95)
CIE-LCHlch(34.61, 62.46, 302.02°)
OKLaboklab(45% 0.0366 -0.1517)
OKLCHoklch(45% 0.156 283.6)
XYZxyz(12.0630, 8.3055, 37.5192)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A7 #9BA742
analogous
#4268A7 #4E42A7 #8042A7
triadic
#4E42A7 #A74E42 #42A74E
tetradic
#4E42A7 #A74268 #9BA742 #42A780
square
#4E42A7 #A74268 #9BA742 #42A780
split-complementary
#4E42A7 #A78042 #68A742
monochromatic
#251F4F #3A317B #4E42A7 #6F64C2 #9890D3

Accessibility & contrast

On white

7.89
#4E42A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4E42A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A7#FFFFFF#000000##FFFFFF
##4E42A71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#295A6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a7;
/* rgb */ color: rgb(78, 66, 167);
/* oklch */ color: oklch(45.0% 0.156 283.6);
Tailwind
colors: {
  custom: {
    50: '#8777c2',
    500: '#4e42a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a7;
$custom-light: #8777c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a7",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 247.129,
    "s": 43.348,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.1561,
    "h": 283.6
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#4E42A7
secondary
#B8BE86
accent
#D355C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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