#4C42D9#4C42D9

#4C42D9 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.220 H 277.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4C42D9
RGBrgb(76, 66, 217)
HSLhsl(244, 67%, 55%)
HSVhsv(244, 70%, 85%)
CMYKcmyk(65%, 69.6%, 0%, 14.9%)
CIE-LABlab(38.62, 48.73, -75.70)
CIE-LCHlch(38.62, 90.03, 302.77°)
OKLaboklab(49.16% 0.0287 -0.2185)
OKLCHoklch(49.16% 0.22 277.5)
XYZxyz(17.4490, 10.4412, 66.7280)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42D9 #CFD942
analogous
#4283D9 #4C42D9 #9842D9
triadic
#4C42D9 #D94C42 #42D94C
tetradic
#4C42D9 #D94283 #CFD942 #42D998
square
#4C42D9 #D94283 #CFD942 #42D998
split-complementary
#4C42D9 #D99842 #83D942
monochromatic
#221B86 #2F25B9 #4C42D9 #7C75E3 #ADA8ED

Accessibility & contrast

On white

6.80
#4C42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4C42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42D9
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42D9#FFFFFF#000000##FFFFFF
##4C42D91.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4c42d9;
/* rgb */ color: rgb(76, 66, 217);
/* oklch */ color: oklch(49.2% 0.220 277.5);
Tailwind
colors: {
  custom: {
    50: '#8f78e6',
    500: '#4c42d9',
    950: '#000000',
  },
}
SCSS
$custom: #4c42d9;
$custom-light: #8f78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42d9",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 243.974,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49162,
    "c": 0.22042,
    "h": 277.5
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#4C42D9
secondary
#D7DB9C
accent
#E93EDE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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