#4C42C8#4C42C8

#4C42C8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.6% C 0.199 H 279.0°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#4C42C8
RGBrgb(76, 66, 200)
HSLhsl(244, 55%, 52%)
HSVhsv(244, 67%, 78%)
CMYKcmyk(62%, 67%, 0%, 21.6%)
CIE-LABlab(37.12, 43.33, -68.35)
CIE-LCHlch(37.12, 80.93, 302.37°)
OKLaboklab(47.62% 0.0311 -0.197)
OKLCHoklch(47.62% 0.199 279)
XYZxyz(15.3507, 9.6019, 55.6768)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42C8 #BEC842
analogous
#427BC8 #4C42C8 #8F42C8
triadic
#4C42C8 #C84C42 #42C84C
tetradic
#4C42C8 #C8427B #BEC842 #42C88F
square
#4C42C8 #C8427B #BEC842 #42C88F
split-complementary
#4C42C8 #C88F42 #7BC842
monochromatic
#26206F #372E9F #4C42C8 #7971D6 #A6A1E4

Accessibility & contrast

On white

7.19
#4C42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4C42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C42C8
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42C8#FFFFFF#000000##FFFFFF
##4C42C81.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4c42c8;
/* rgb */ color: rgb(76, 66, 200);
/* oklch */ color: oklch(47.6% 0.199 279.0);
Tailwind
colors: {
  custom: {
    50: '#8c77da',
    500: '#4c42c8',
    950: '#000000',
  },
}
SCSS
$custom: #4c42c8;
$custom-light: #8c77da;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42c8",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 244.478,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47619,
    "c": 0.19946,
    "h": 279
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

primary
#4C42C8
secondary
#CCD096
accent
#DE4AD3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4C42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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