#4C38CD#4C38CD

#4C38CD is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.6% C 0.216 H 280.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#4C38CD
RGBrgb(76, 56, 205)
HSLhsl(248, 60%, 51%)
HSVhsv(248, 73%, 80%)
CMYKcmyk(62.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(35.54, 50.49, -73.85)
CIE-LCHlch(35.54, 89.45, 304.36°)
OKLaboklab(46.63% 0.0375 -0.2131)
OKLCHoklch(46.63% 0.216 280)
XYZxyz(15.4106, 8.7714, 58.6267)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38CD #B9CD38
analogous
#386ECD #4C38CD #9638CD
triadic
#4C38CD #CD4C38 #38CD4C
tetradic
#4C38CD #CD386E #B9CD38 #38CD96
square
#4C38CD #CD386E #B9CD38 #38CD96
split-complementary
#4C38CD #CD9638 #6ECD38
monochromatic
#271C6F #3828A0 #4C38CD #7869D9 #A49AE6

Accessibility & contrast

On white

7.62
#4C38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4C38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38CD
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38CD#FFFFFF#000000##FFFFFF
##4C38CD1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004ECA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4c38cd;
/* rgb */ color: rgb(76, 56, 205);
/* oklch */ color: oklch(46.6% 0.216 280.0);
Tailwind
colors: {
  custom: {
    50: '#8d71de',
    500: '#4c38cd',
    950: '#000000',
  },
}
SCSS
$custom: #4c38cd;
$custom-light: #8d71de;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38cd",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 248.054,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46628,
    "c": 0.21636,
    "h": 280
  },
  "luminance": 0.08773
}

Semantic roles & 50–950 ramp

primary
#4C38CD
secondary
#C8D18F
accent
#E345CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4C38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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