#4E42A9#4E42A9

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

Color values

HEX#4E42A9
RGBrgb(78, 66, 169)
HSLhsl(247, 44%, 46%)
HSVhsv(247, 61%, 66%)
CMYKcmyk(53.8%, 60.9%, 0%, 33.7%)
CIE-LABlab(34.76, 33.76, -53.91)
CIE-LCHlch(34.76, 63.60, 302.06°)
OKLaboklab(45.16% 0.0365 -0.1545)
OKLCHoklch(45.16% 0.159 283.3)
XYZxyz(12.2494, 8.3800, 38.5005)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A9 #9DA942
analogous
#4269A9 #4E42A9 #8142A9
triadic
#4E42A9 #A94E42 #42A94E
tetradic
#4E42A9 #A94269 #9DA942 #42A981
square
#4E42A9 #A94269 #9DA942 #42A981
split-complementary
#4E42A9 #A98142 #69A942
monochromatic
#252051 #3A317D #4E42A9 #7065C3 #9991D4

Accessibility & contrast

On white

7.85
#4E42A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E42A9
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A9#FFFFFF#000000##FFFFFF
##4E42A91.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#275A6F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e42a9;
/* rgb */ color: rgb(78, 66, 169);
/* oklch */ color: oklch(45.2% 0.159 283.3);
Tailwind
colors: {
  custom: {
    50: '#8877c3',
    500: '#4e42a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a9;
$custom-light: #8877c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a9",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 246.99,
    "s": 43.83,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.1588,
    "h": 283.3
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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