#4C38C3#4C38C3

#4C38C3 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.204 H 281.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4C38C3
RGBrgb(76, 56, 195)
HSLhsl(249, 55%, 49%)
HSVhsv(249, 71%, 76%)
CMYKcmyk(61%, 71.3%, 0%, 23.5%)
CIE-LABlab(34.61, 47.43, -69.55)
CIE-LCHlch(34.61, 84.18, 304.29°)
OKLaboklab(45.68% 0.0395 -0.2005)
OKLCHoklch(45.68% 0.204 281.2)
XYZxyz(14.2419, 8.3040, 52.4715)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38C3 #AFC338
analogous
#386AC3 #4C38C3 #9238C3
triadic
#4C38C3 #C34C38 #38C34C
tetradic
#4C38C3 #C3386A #AFC338 #38C392
square
#4C38C3 #C3386A #AFC338 #38C392
split-complementary
#4C38C3 #C39238 #6AC338
monochromatic
#271D64 #392A93 #4C38C3 #7565D3 #A095E1

Accessibility & contrast

On white

7.89
#4C38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4C38C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38C3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38C3#FFFFFF#000000##FFFFFF
##4C38C31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#005E7A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4c38c3;
/* rgb */ color: rgb(76, 56, 195);
/* oklch */ color: oklch(45.7% 0.204 281.2);
Tailwind
colors: {
  custom: {
    50: '#8c71d6',
    500: '#4c38c3',
    950: '#000000',
  },
}
SCSS
$custom: #4c38c3;
$custom-light: #8c71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38c3",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 248.633,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45683,
    "c": 0.20437,
    "h": 281.2
  },
  "luminance": 0.08305
}

Semantic roles & 50–950 ramp

primary
#4C38C3
secondary
#C2CC8B
accent
#DF49C9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4C38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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