#4C38CC#4C38CC

#4C38CC is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.5% C 0.215 H 280.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4C38CC
RGBrgb(76, 56, 204)
HSLhsl(248, 59%, 51%)
HSVhsv(248, 73%, 80%)
CMYKcmyk(62.7%, 72.5%, 0%, 20%)
CIE-LABlab(35.45, 50.18, -73.42)
CIE-LCHlch(35.45, 88.93, 304.35°)
OKLaboklab(46.53% 0.0377 -0.2118)
OKLCHoklch(46.53% 0.215 280.1)
XYZxyz(15.2903, 8.7233, 57.9930)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38CC #B8CC38
analogous
#386ECC #4C38CC #9638CC
triadic
#4C38CC #CC4C38 #38CC4C
tetradic
#4C38CC #CC386E #B8CC38 #38CC96
square
#4C38CC #CC386E #B8CC38 #38CC96
split-complementary
#4C38CC #CC9638 #6ECC38
monochromatic
#271C6E #38299E #4C38CC #7869D8 #A499E5

Accessibility & contrast

On white

7.65
#4C38CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4C38CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38CC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38CC#FFFFFF#000000##FFFFFF
##4C38CC1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4c38cc;
/* rgb */ color: rgb(76, 56, 204);
/* oklch */ color: oklch(46.5% 0.215 280.1);
Tailwind
colors: {
  custom: {
    50: '#8d71dd',
    500: '#4c38cc',
    950: '#000000',
  },
}
SCSS
$custom: #4c38cc;
$custom-light: #8d71dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38cc",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 248.108,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46533,
    "c": 0.21516,
    "h": 280.1
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#4C38CC
secondary
#C8D18F
accent
#E245CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4C38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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