#4C42EA#4C42EA

#4C42EA is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.241 H 276.2°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#4C42EA
RGBrgb(76, 66, 234)
HSLhsl(244, 80%, 59%)
HSVhsv(244, 72%, 92%)
CMYKcmyk(67.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(40.20, 54.04, -82.80)
CIE-LCHlch(40.20, 98.88, 303.13°)
OKLaboklab(50.76% 0.0258 -0.2393)
OKLCHoklch(50.76% 0.241 276.2)
XYZxyz(19.7751, 11.3717, 78.9788)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42EA #E0EA42
analogous
#428CEA #4C42EA #A042EA
triadic
#4C42EA #EA4C42 #42EA4C
tetradic
#4C42EA #EA428C #E0EA42 #42EAA0
square
#4C42EA #EA428C #E0EA42 #42EAA0
split-complementary
#4C42EA #EAA042 #8CEA42
monochromatic
#1A12A0 #2318D7 #4C42EA #8079F0 #B4B0F6

Accessibility & contrast

On white

6.41
#4C42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4C42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42EA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42EA#FFFFFF#000000##FFFFFF
##4C42EA1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EF
Deuteranopia (green-blind)
#0057E7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c42ea;
/* rgb */ color: rgb(76, 66, 234);
/* oklch */ color: oklch(50.8% 0.241 276.2);
Tailwind
colors: {
  custom: {
    50: '#9279f2',
    500: '#4c42ea',
    950: '#000000',
  },
}
SCSS
$custom: #4c42ea;
$custom-light: #9279f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42ea",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 243.571,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.24067,
    "h": 276.2
  },
  "luminance": 0.11373
}

Semantic roles & 50–950 ramp

primary
#4C42EA
secondary
#E1E5A3
accent
#F631EB
background
#F9F7FF
surface
#F2EDFE
border
#CCC8D6
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4C42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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