#4C42E1#4C42E1

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

Color values

HEX#4C42E1
RGBrgb(76, 66, 225)
HSLhsl(244, 73%, 57%)
HSVhsv(244, 71%, 88%)
CMYKcmyk(66.2%, 70.7%, 0%, 11.8%)
CIE-LABlab(39.36, 51.24, -79.08)
CIE-LCHlch(39.36, 94.22, 302.94°)
OKLaboklab(49.91% 0.0274 -0.2284)
OKLCHoklch(49.91% 0.23 276.8)
XYZxyz(18.5149, 10.8676, 72.3415)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42E1 #D7E142
analogous
#4287E1 #4C42E1 #9C42E1
triadic
#4C42E1 #E14C42 #42E14C
tetradic
#4C42E1 #E14287 #D7E142 #42E19C
square
#4C42E1 #E14287 #D7E142 #42E19C
split-complementary
#4C42E1 #E19C42 #87E142
monochromatic
#1F1792 #2A1FC6 #4C42E1 #7E77E9 #B0ACF2

Accessibility & contrast

On white

6.62
#4C42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4C42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42E1
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42E1#FFFFFF#000000##FFFFFF
##4C42E11.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0056DE
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4c42e1;
/* rgb */ color: rgb(76, 66, 225);
/* oklch */ color: oklch(49.9% 0.230 276.8);
Tailwind
colors: {
  custom: {
    50: '#9078ec',
    500: '#4c42e1',
    950: '#000000',
  },
}
SCSS
$custom: #4c42e1;
$custom-light: #9078ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42e1",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 243.774,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49909,
    "c": 0.23003,
    "h": 276.8
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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