#4C42D2#4C42D2

#4C42D2 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.212 H 278.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4C42D2
RGBrgb(76, 66, 210)
HSLhsl(244, 62%, 54%)
HSVhsv(244, 69%, 82%)
CMYKcmyk(63.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(37.99, 46.52, -72.71)
CIE-LCHlch(37.99, 86.31, 302.61°)
OKLaboklab(48.52% 0.0298 -0.2098)
OKLCHoklch(48.52% 0.212 278.1)
XYZxyz(16.5578, 10.0847, 62.0343)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42D2 #C8D242
analogous
#4280D2 #4C42D2 #9442D2
triadic
#4C42D2 #D24C42 #42D24C
tetradic
#4C42D2 #D24280 #C8D242 #42D294
square
#4C42D2 #D24280 #C8D242 #42D294
split-complementary
#4C42D2 #D29442 #80D242
monochromatic
#241E7C #3229AD #4C42D2 #7B73DE #AAA5EA

Accessibility & contrast

On white

6.96
#4C42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4C42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42D2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42D2#FFFFFF#000000##FFFFFF
##4C42D21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4c42d2;
/* rgb */ color: rgb(76, 66, 210);
/* oklch */ color: oklch(48.5% 0.212 278.1);
Tailwind
colors: {
  custom: {
    50: '#8e78e1',
    500: '#4c42d2',
    950: '#000000',
  },
}
SCSS
$custom: #4c42d2;
$custom-light: #8e78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42d2",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 244.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48519,
    "c": 0.21188,
    "h": 278.1
  },
  "luminance": 0.10086
}

Semantic roles & 50–950 ramp

primary
#4C42D2
secondary
#D2D799
accent
#E543D9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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