#4C38D9#4C38D9

#4C38D9 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.8% C 0.230 H 278.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#4C38D9
RGBrgb(76, 56, 217)
HSLhsl(247, 68%, 54%)
HSVhsv(247, 74%, 85%)
CMYKcmyk(65%, 74.2%, 0%, 14.9%)
CIE-LABlab(36.69, 54.12, -78.88)
CIE-LCHlch(36.69, 95.66, 304.45°)
OKLaboklab(47.79% 0.0349 -0.2278)
OKLCHoklch(47.79% 0.23 278.7)
XYZxyz(16.9150, 9.3732, 66.5500)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38D9 #C5D938
analogous
#3875D9 #4C38D9 #9C38D9
triadic
#4C38D9 #D94C38 #38D94C
tetradic
#4C38D9 #D93875 #C5D938 #38D99C
square
#4C38D9 #D93875 #C5D938 #38D99C
split-complementary
#4C38D9 #D99C38 #75D938
monochromatic
#25187E #3422B2 #4C38D9 #7A6BE3 #A89FED

Accessibility & contrast

On white

7.30
#4C38D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4C38D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38D9
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38D9#FFFFFF#000000##FFFFFF
##4C38D91.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDE
Deuteranopia (green-blind)
#0050D6
Tritanopia (blue-blind)
#006686
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c38d9;
/* rgb */ color: rgb(76, 56, 217);
/* oklch */ color: oklch(47.8% 0.230 278.7);
Tailwind
colors: {
  custom: {
    50: '#9072e6',
    500: '#4c38d9',
    950: '#000000',
  },
}
SCSS
$custom: #4c38d9;
$custom-light: #9072e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38d9",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 247.453,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4779,
    "c": 0.23043,
    "h": 278.7
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

primary
#4C38D9
secondary
#D0D994
accent
#EB3DD5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4C38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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