#4D38C5#4D38C5

#4D38C5 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.0% C 0.207 H 281.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4D38C5
RGBrgb(77, 56, 197)
HSLhsl(249, 56%, 50%)
HSVhsv(249, 72%, 77%)
CMYKcmyk(60.9%, 71.6%, 0%, 22.7%)
CIE-LABlab(34.88, 48.18, -70.27)
CIE-LCHlch(34.88, 85.20, 304.43°)
OKLaboklab(45.95% 0.0405 -0.2026)
OKLCHoklch(45.95% 0.207 281.3)
XYZxyz(14.5496, 8.4363, 53.6742)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38C5 #B0C538
analogous
#386AC5 #4D38C5 #9338C5
triadic
#4D38C5 #C54D38 #38C54D
tetradic
#4D38C5 #C5386A #B0C538 #38C593
square
#4D38C5 #C5386A #B0C538 #38C593
split-complementary
#4D38C5 #C59338 #6AC538
monochromatic
#281D66 #3A2A95 #4D38C5 #7767D4 #A196E1

Accessibility & contrast

On white

7.81
#4D38C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4D38C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38C5
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38C5#FFFFFF#000000##FFFFFF
##4D38C51.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4d38c5;
/* rgb */ color: rgb(77, 56, 197);
/* oklch */ color: oklch(46.0% 0.207 281.3);
Tailwind
colors: {
  custom: {
    50: '#8c71d8',
    500: '#4d38c5',
    950: '#000000',
  },
}
SCSS
$custom: #4d38c5;
$custom-light: #8c71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38c5",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 248.936,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4595,
    "c": 0.20662,
    "h": 281.3
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#4D38C5
secondary
#C3CD8C
accent
#DF49C9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4D38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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