#4C42D7#4C42D7

#4C42D7 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.218 H 277.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#4C42D7
RGBrgb(76, 66, 215)
HSLhsl(244, 65%, 55%)
HSVhsv(244, 69%, 84%)
CMYKcmyk(64.7%, 69.3%, 0%, 15.7%)
CIE-LABlab(38.44, 48.10, -74.85)
CIE-LCHlch(38.44, 88.97, 302.72°)
OKLaboklab(48.98% 0.029 -0.2161)
OKLCHoklch(48.98% 0.218 277.6)
XYZxyz(17.1905, 10.3378, 65.3663)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42D7 #CDD742
analogous
#4282D7 #4C42D7 #9742D7
triadic
#4C42D7 #D74C42 #42D74C
tetradic
#4C42D7 #D74282 #CDD742 #42D797
square
#4C42D7 #D74282 #CDD742 #42D797
split-complementary
#4C42D7 #D79742 #82D742
monochromatic
#231C83 #3026B5 #4C42D7 #7C75E2 #ACA7EC

Accessibility & contrast

On white

6.85
#4C42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4C42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42D7
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42D7#FFFFFF#000000##FFFFFF
##4C42D71.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DB
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4c42d7;
/* rgb */ color: rgb(76, 66, 215);
/* oklch */ color: oklch(49.0% 0.218 277.6);
Tailwind
colors: {
  custom: {
    50: '#8f78e5',
    500: '#4c42d7',
    950: '#000000',
  },
}
SCSS
$custom: #4c42d7;
$custom-light: #8f78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42d7",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 244.027,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.218,
    "h": 277.6
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#4C42D7
secondary
#D5DA9B
accent
#E840DD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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