#4C42D5#4C42D5

#4C42D5 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.216 H 277.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4C42D5
RGBrgb(76, 66, 213)
HSLhsl(244, 64%, 55%)
HSVhsv(244, 69%, 84%)
CMYKcmyk(64.3%, 69%, 0%, 16.5%)
CIE-LABlab(38.26, 47.47, -74.00)
CIE-LCHlch(38.26, 87.91, 302.68°)
OKLaboklab(48.79% 0.0293 -0.2136)
OKLCHoklch(48.79% 0.216 277.8)
XYZxyz(16.9351, 10.2356, 64.0211)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42D5 #CBD542
analogous
#4281D5 #4C42D5 #9642D5
triadic
#4C42D5 #D54C42 #42D54C
tetradic
#4C42D5 #D54281 #CBD542 #42D596
square
#4C42D5 #D54281 #CBD542 #42D596
split-complementary
#4C42D5 #D59642 #81D542
monochromatic
#231C80 #3128B2 #4C42D5 #7B74E0 #ABA6EB

Accessibility & contrast

On white

6.89
#4C42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4C42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42D5
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42D5#FFFFFF#000000##FFFFFF
##4C42D51.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4c42d5;
/* rgb */ color: rgb(76, 66, 213);
/* oklch */ color: oklch(48.8% 0.216 277.8);
Tailwind
colors: {
  custom: {
    50: '#8e78e3',
    500: '#4c42d5',
    950: '#000000',
  },
}
SCSS
$custom: #4c42d5;
$custom-light: #8e78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42d5",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 244.082,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48793,
    "c": 0.21556,
    "h": 277.8
  },
  "luminance": 0.10237
}

Semantic roles & 50–950 ramp

primary
#4C42D5
secondary
#D4D89A
accent
#E741DB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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