#4C42C2#4C42C2

#4C42C2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.192 H 279.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#4C42C2
RGBrgb(76, 66, 194)
HSLhsl(245, 51%, 51%)
HSVhsv(245, 66%, 76%)
CMYKcmyk(60.8%, 66%, 0%, 23.9%)
CIE-LABlab(36.61, 41.41, -65.69)
CIE-LCHlch(36.61, 77.65, 302.23°)
OKLaboklab(47.09% 0.0319 -0.1892)
OKLCHoklch(47.09% 0.192 279.6)
XYZxyz(14.6632, 9.3269, 52.0560)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42C2 #B8C242
analogous
#4278C2 #4C42C2 #8C42C2
triadic
#4C42C2 #C24C42 #42C24C
tetradic
#4C42C2 #C24278 #B8C242 #42C28C
square
#4C42C2 #C24278 #B8C242 #42C28C
split-complementary
#4C42C2 #C28C42 #78C242
monochromatic
#272268 #383196 #4C42C2 #7870D1 #A49FE0

Accessibility & contrast

On white

7.33
#4C42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4C42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C42C2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42C2#FFFFFF#000000##FFFFFF
##4C42C21.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c42c2;
/* rgb */ color: rgb(76, 66, 194);
/* oklch */ color: oklch(47.1% 0.192 279.6);
Tailwind
colors: {
  custom: {
    50: '#8b77d5',
    500: '#4c42c2',
    950: '#000000',
  },
}
SCSS
$custom: #4c42c2;
$custom-light: #8b77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42c2",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 244.688,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.19187,
    "h": 279.6
  },
  "luminance": 0.09328
}

Semantic roles & 50–950 ramp

primary
#4C42C2
secondary
#C8CC94
accent
#DB4DD0
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4C42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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