#4C38D7#4C38D7

#4C38D7 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.6% C 0.228 H 278.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4C38D7
RGBrgb(76, 56, 215)
HSLhsl(248, 67%, 53%)
HSVhsv(248, 74%, 84%)
CMYKcmyk(64.7%, 74%, 0%, 15.7%)
CIE-LABlab(36.50, 53.52, -78.05)
CIE-LCHlch(36.50, 94.63, 304.44°)
OKLaboklab(47.59% 0.0354 -0.2253)
OKLCHoklch(47.59% 0.228 278.9)
XYZxyz(16.6565, 9.2698, 65.1883)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38D7 #C3D738
analogous
#3873D7 #4C38D7 #9B38D7
triadic
#4C38D7 #D74C38 #38D74C
tetradic
#4C38D7 #D73873 #C3D738 #38D79B
square
#4C38D7 #D73873 #C3D738 #38D79B
split-complementary
#4C38D7 #D79B38 #73D738
monochromatic
#25197C #3523AF #4C38D7 #7A6BE1 #A89EEB

Accessibility & contrast

On white

7.36
#4C38D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4C38D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38D7
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38D7#FFFFFF#000000##FFFFFF
##4C38D71.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#004FD4
Tritanopia (blue-blind)
#006585
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c38d7;
/* rgb */ color: rgb(76, 56, 215);
/* oklch */ color: oklch(47.6% 0.228 278.9);
Tailwind
colors: {
  custom: {
    50: '#8f72e5',
    500: '#4c38d7',
    950: '#000000',
  },
}
SCSS
$custom: #4c38d7;
$custom-light: #8f72e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38d7",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 247.547,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47594,
    "c": 0.22811,
    "h": 278.9
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#4C38D7
secondary
#CFD893
accent
#E93ED4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4C38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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