#4C42E2#4C42E2

#4C42E2 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.231 H 276.8°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#4C42E2
RGBrgb(76, 66, 226)
HSLhsl(244, 73%, 57%)
HSVhsv(244, 71%, 89%)
CMYKcmyk(66.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(39.45, 51.55, -79.49)
CIE-LCHlch(39.45, 94.74, 302.96°)
OKLaboklab(50% 0.0272 -0.2296)
OKLCHoklch(50% 0.231 276.8)
XYZxyz(18.6517, 10.9223, 73.0620)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42E2 #D8E242
analogous
#4288E2 #4C42E2 #9C42E2
triadic
#4C42E2 #E24C42 #42E24C
tetradic
#4C42E2 #E24288 #D8E242 #42E29C
square
#4C42E2 #E24288 #D8E242 #42E29C
split-complementary
#4C42E2 #E29C42 #88E242
monochromatic
#1E1793 #291FC8 #4C42E2 #7E77EA #B1ACF2

Accessibility & contrast

On white

6.59
#4C42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4C42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42E2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42E2#FFFFFF#000000##FFFFFF
##4C42E21.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0056DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4c42e2;
/* rgb */ color: rgb(76, 66, 226);
/* oklch */ color: oklch(50.0% 0.231 276.8);
Tailwind
colors: {
  custom: {
    50: '#9178ec',
    500: '#4c42e2',
    950: '#000000',
  },
}
SCSS
$custom: #4c42e2;
$custom-light: #9178ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42e2",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 243.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.23123,
    "h": 276.8
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

primary
#4C42E2
secondary
#DCE09F
accent
#F038E5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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