#4C38CF#4C38CF

#4C38CF is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.8% C 0.219 H 279.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4C38CF
RGBrgb(76, 56, 207)
HSLhsl(248, 61%, 52%)
HSVhsv(248, 73%, 81%)
CMYKcmyk(63.3%, 72.9%, 0%, 18.8%)
CIE-LABlab(35.73, 51.10, -74.69)
CIE-LCHlch(35.73, 90.50, 304.38°)
OKLaboklab(46.82% 0.0371 -0.2155)
OKLCHoklch(46.82% 0.219 279.8)
XYZxyz(15.6536, 8.8686, 59.9063)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38CF #BBCF38
analogous
#3870CF #4C38CF #9838CF
triadic
#4C38CF #CF4C38 #38CF4C
tetradic
#4C38CF #CF3870 #BBCF38 #38CF98
square
#4C38CF #CF3870 #BBCF38 #38CF98
split-complementary
#4C38CF #CF9838 #70CF38
monochromatic
#271B71 #3827A3 #4C38CF #7869DB #A59BE7

Accessibility & contrast

On white

7.57
#4C38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4C38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38CF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38CF#FFFFFF#000000##FFFFFF
##4C38CF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#004ECC
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4c38cf;
/* rgb */ color: rgb(76, 56, 207);
/* oklch */ color: oklch(46.8% 0.219 279.8);
Tailwind
colors: {
  custom: {
    50: '#8e71df',
    500: '#4c38cf',
    950: '#000000',
  },
}
SCSS
$custom: #4c38cf;
$custom-light: #8e71df;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38cf",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 247.947,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4682,
    "c": 0.21872,
    "h": 279.8
  },
  "luminance": 0.0887
}

Semantic roles & 50–950 ramp

primary
#4C38CF
secondary
#CAD390
accent
#E444CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4C38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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