#4C42EB#4C42EB

#4C42EB is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.9% C 0.242 H 276.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4C42EB
RGBrgb(76, 66, 235)
HSLhsl(244, 81%, 59%)
HSVhsv(244, 72%, 92%)
CMYKcmyk(67.7%, 71.9%, 0%, 7.8%)
CIE-LABlab(40.29, 54.35, -83.21)
CIE-LCHlch(40.29, 99.39, 303.15°)
OKLaboklab(50.86% 0.0256 -0.2405)
OKLCHoklch(50.86% 0.242 276.1)
XYZxyz(19.9192, 11.4293, 79.7375)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42EB #E1EB42
analogous
#428DEB #4C42EB #A142EB
triadic
#4C42EB #EB4C42 #42EB4C
tetradic
#4C42EB #EB428D #E1EB42 #42EBA1
square
#4C42EB #EB428D #E1EB42 #42EBA1
split-complementary
#4C42EB #EBA142 #8DEB42
monochromatic
#1A11A2 #2217D9 #4C42EB #8079F1 #B5B1F7

Accessibility & contrast

On white

6.39
#4C42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4C42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C42EB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42EB#FFFFFF#000000##FFFFFF
##4C42EB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F0
Deuteranopia (green-blind)
#0057E8
Tritanopia (blue-blind)
#007293
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c42eb;
/* rgb */ color: rgb(76, 66, 235);
/* oklch */ color: oklch(50.9% 0.242 276.1);
Tailwind
colors: {
  custom: {
    50: '#9279f3',
    500: '#4c42eb',
    950: '#000000',
  },
}
SCSS
$custom: #4c42eb;
$custom-light: #9279f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42eb",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 243.55,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.24184,
    "h": 276.1
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#4C42EB
secondary
#E2E6A3
accent
#F731EC
background
#FAF7FF
surface
#F3EDFE
border
#CDC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #4C42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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