#4E42C8#4E42C8

#4E42C8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.8% C 0.199 H 279.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4E42C8
RGBrgb(78, 66, 200)
HSLhsl(245, 55%, 52%)
HSVhsv(245, 67%, 78%)
CMYKcmyk(61%, 67%, 0%, 21.6%)
CIE-LABlab(37.27, 43.62, -68.09)
CIE-LCHlch(37.27, 80.87, 302.65°)
OKLaboklab(47.77% 0.0337 -0.1962)
OKLCHoklch(47.77% 0.199 279.7)
XYZxyz(15.5121, 9.6851, 55.6844)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42C8 #BCC842
analogous
#4279C8 #4E42C8 #9142C8
triadic
#4E42C8 #C84E42 #42C84E
tetradic
#4E42C8 #C84279 #BCC842 #42C891
square
#4E42C8 #C84279 #BCC842 #42C891
split-complementary
#4E42C8 #C89142 #79C842
monochromatic
#27206F #382E9F #4E42C8 #7A71D6 #A7A1E4

Accessibility & contrast

On white

7.15
#4E42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4E42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42C8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42C8#FFFFFF#000000##FFFFFF
##4E42C81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4e42c8;
/* rgb */ color: rgb(78, 66, 200);
/* oklch */ color: oklch(47.8% 0.199 279.7);
Tailwind
colors: {
  custom: {
    50: '#8d77da',
    500: '#4e42c8',
    950: '#000000',
  },
}
SCSS
$custom: #4e42c8;
$custom-light: #8d77da;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42c8",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 245.373,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47769,
    "c": 0.19908,
    "h": 279.7
  },
  "luminance": 0.09686
}

Semantic roles & 50–950 ramp

primary
#4E42C8
secondary
#CBD096
accent
#DE4AD1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4E42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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