#4E42A8#4E42A8

#4E42A8 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.157 H 283.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4E42A8
RGBrgb(78, 66, 168)
HSLhsl(247, 44%, 46%)
HSVhsv(247, 61%, 66%)
CMYKcmyk(53.6%, 60.7%, 0%, 34.1%)
CIE-LABlab(34.69, 33.44, -53.43)
CIE-LCHlch(34.69, 63.03, 302.04°)
OKLaboklab(45.08% 0.0366 -0.1531)
OKLCHoklch(45.08% 0.157 283.4)
XYZxyz(12.1558, 8.3426, 38.0080)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A8 #9CA842
analogous
#4269A8 #4E42A8 #8142A8
triadic
#4E42A8 #A84E42 #42A84E
tetradic
#4E42A8 #A84269 #9CA842 #42A881
square
#4E42A8 #A84269 #9CA842 #42A881
split-complementary
#4E42A8 #A88142 #69A842
monochromatic
#251F50 #3A317C #4E42A8 #7065C2 #9991D4

Accessibility & contrast

On white

7.87
#4E42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4E42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A8#FFFFFF#000000##FFFFFF
##4E42A81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#285A6E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e42a8;
/* rgb */ color: rgb(78, 66, 168);
/* oklch */ color: oklch(45.1% 0.157 283.4);
Tailwind
colors: {
  custom: {
    50: '#8777c3',
    500: '#4e42a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a8;
$custom-light: #8777c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a8",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 247.059,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45082,
    "c": 0.15745,
    "h": 283.4
  },
  "luminance": 0.08343
}

Semantic roles & 50–950 ramp

primary
#4E42A8
secondary
#B8BF87
accent
#D354C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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