#4E42D4#4E42D4

#4E42D4 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.8% C 0.214 H 278.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4E42D4
RGBrgb(78, 66, 212)
HSLhsl(245, 63%, 55%)
HSVhsv(245, 69%, 83%)
CMYKcmyk(63.2%, 68.9%, 0%, 16.9%)
CIE-LABlab(38.32, 47.41, -73.32)
CIE-LCHlch(38.32, 87.31, 302.89°)
OKLaboklab(48.85% 0.032 -0.2115)
OKLCHoklch(48.85% 0.214 278.6)
XYZxyz(16.9699, 10.2682, 63.3623)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42D4 #C8D442
analogous
#427FD4 #4E42D4 #9742D4
triadic
#4E42D4 #D44E42 #42D44E
tetradic
#4E42D4 #D4427F #C8D442 #42D497
square
#4E42D4 #D4427F #C8D442 #42D497
split-complementary
#4E42D4 #D49742 #7FD442
monochromatic
#251D7F #3328B1 #4E42D4 #7D74DF #ABA6EB

Accessibility & contrast

On white

6.88
#4E42D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4E42D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E42D4
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42D4#FFFFFF#000000##FFFFFF
##4E42D41.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e42d4;
/* rgb */ color: rgb(78, 66, 212);
/* oklch */ color: oklch(48.8% 0.214 278.6);
Tailwind
colors: {
  custom: {
    50: '#8f78e2',
    500: '#4e42d4',
    950: '#000000',
  },
}
SCSS
$custom: #4e42d4;
$custom-light: #8f78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42d4",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 244.932,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48845,
    "c": 0.21393,
    "h": 278.6
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#4E42D4
secondary
#D3D89A
accent
#E642D8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4E42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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