#4C42C4#4C42C4

#4C42C4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.3% C 0.194 H 279.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4C42C4
RGBrgb(76, 66, 196)
HSLhsl(245, 52%, 51%)
HSVhsv(245, 66%, 77%)
CMYKcmyk(61.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(36.78, 42.05, -66.58)
CIE-LCHlch(36.78, 78.75, 302.28°)
OKLaboklab(47.27% 0.0316 -0.1918)
OKLCHoklch(47.27% 0.194 279.4)
XYZxyz(14.8893, 9.4173, 53.2470)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42C4 #BAC442
analogous
#4279C4 #4C42C4 #8D42C4
triadic
#4C42C4 #C44C42 #42C44C
tetradic
#4C42C4 #C44279 #BAC442 #42C48D
square
#4C42C4 #C44279 #BAC442 #42C48D
split-complementary
#4C42C4 #C48D42 #79C442
monochromatic
#27216A #383099 #4C42C4 #7871D3 #A49FE1

Accessibility & contrast

On white

7.28
#4C42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4C42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C42C4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42C4#FFFFFF#000000##FFFFFF
##4C42C41.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4c42c4;
/* rgb */ color: rgb(76, 66, 196);
/* oklch */ color: oklch(47.3% 0.194 279.4);
Tailwind
colors: {
  custom: {
    50: '#8b77d7',
    500: '#4c42c4',
    950: '#000000',
  },
}
SCSS
$custom: #4c42c4;
$custom-light: #8b77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42c4",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 244.615,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.19441,
    "h": 279.4
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#4C42C4
secondary
#C9CE94
accent
#DC4CD1
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4C42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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