#4C38CA#4C38CA

#4C38CA is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.213 H 280.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4C38CA
RGBrgb(76, 56, 202)
HSLhsl(248, 58%, 51%)
HSVhsv(248, 72%, 79%)
CMYKcmyk(62.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.26, 49.57, -72.57)
CIE-LCHlch(35.26, 87.88, 304.34°)
OKLaboklab(46.34% 0.0381 -0.2093)
OKLCHoklch(46.34% 0.213 280.3)
XYZxyz(15.0520, 8.6280, 56.7378)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38CA #B6CA38
analogous
#386DCA #4C38CA #9538CA
triadic
#4C38CA #CA4C38 #38CA4C
tetradic
#4C38CA #CA386D #B6CA38 #38CA95
square
#4C38CA #CA386D #B6CA38 #38CA95
split-complementary
#4C38CA #CA9538 #6DCA38
monochromatic
#271D6B #39299B #4C38CA #7768D7 #A399E4

Accessibility & contrast

On white

7.70
#4C38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4C38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38CA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38CA#FFFFFF#000000##FFFFFF
##4C38CA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4c38ca;
/* rgb */ color: rgb(76, 56, 202);
/* oklch */ color: oklch(46.3% 0.213 280.3);
Tailwind
colors: {
  custom: {
    50: '#8d71db',
    500: '#4c38ca',
    950: '#000000',
  },
}
SCSS
$custom: #4c38ca;
$custom-light: #8d71db;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38ca",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 248.219,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.21279,
    "h": 280.3
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

primary
#4C38CA
secondary
#C6CF8E
accent
#E147CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4C38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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