#4E42D2#4E42D2

#4E42D2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.211 H 278.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4E42D2
RGBrgb(78, 66, 210)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 69%, 82%)
CMYKcmyk(62.9%, 68.6%, 0%, 17.6%)
CIE-LABlab(38.14, 46.78, -72.46)
CIE-LCHlch(38.14, 86.25, 302.85°)
OKLaboklab(48.66% 0.0323 -0.209)
OKLCHoklch(48.66% 0.211 278.8)
XYZxyz(16.7192, 10.1680, 62.0418)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42D2 #C6D242
analogous
#427ED2 #4E42D2 #9642D2
triadic
#4E42D2 #D24E42 #42D24E
tetradic
#4E42D2 #D2427E #C6D242 #42D296
square
#4E42D2 #D2427E #C6D242 #42D296
split-complementary
#4E42D2 #D29642 #7ED242
monochromatic
#251E7C #3429AD #4E42D2 #7C73DE #ABA5EA

Accessibility & contrast

On white

6.92
#4E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4E42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E42D2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42D2#FFFFFF#000000##FFFFFF
##4E42D21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e42d2;
/* rgb */ color: rgb(78, 66, 210);
/* oklch */ color: oklch(48.7% 0.211 278.8);
Tailwind
colors: {
  custom: {
    50: '#8f78e1',
    500: '#4e42d2',
    950: '#000000',
  },
}
SCSS
$custom: #4e42d2;
$custom-light: #8f78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42d2",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 245,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48663,
    "c": 0.21148,
    "h": 278.8
  },
  "luminance": 0.10169
}

Semantic roles & 50–950 ramp

primary
#4E42D2
secondary
#D1D799
accent
#E543D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4E42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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