#4C38C7#4C38C7

#4C38C7 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.1% C 0.209 H 280.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#4C38C7
RGBrgb(76, 56, 199)
HSLhsl(248, 56%, 50%)
HSVhsv(248, 72%, 78%)
CMYKcmyk(61.8%, 71.9%, 0%, 22%)
CIE-LABlab(34.98, 48.66, -71.28)
CIE-LCHlch(34.98, 86.30, 304.32°)
OKLaboklab(46.06% 0.0387 -0.2056)
OKLCHoklch(46.06% 0.209 280.7)
XYZxyz(14.7002, 8.4873, 54.8853)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38C7 #B3C738
analogous
#386BC7 #4C38C7 #9438C7
triadic
#4C38C7 #C74C38 #38C74C
tetradic
#4C38C7 #C7386B #B3C738 #38C794
square
#4C38C7 #C7386B #B3C738 #38C794
split-complementary
#4C38C7 #C79438 #6BC738
monochromatic
#281D67 #3A2B97 #4C38C7 #7768D4 #A298E2

Accessibility & contrast

On white

7.78
#4C38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4C38C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38C7
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38C7#FFFFFF#000000##FFFFFF
##4C38C71.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4c38c7;
/* rgb */ color: rgb(76, 56, 199);
/* oklch */ color: oklch(46.1% 0.209 280.7);
Tailwind
colors: {
  custom: {
    50: '#8c71d9',
    500: '#4c38c7',
    950: '#000000',
  },
}
SCSS
$custom: #4c38c7;
$custom-light: #8c71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38c7",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 248.392,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.20919,
    "h": 280.7
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#4C38C7
secondary
#C4CD8D
accent
#DF48CA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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