#4D38C7#4D38C7

#4D38C7 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.1% C 0.209 H 281.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#4D38C7
RGBrgb(77, 56, 199)
HSLhsl(249, 56%, 50%)
HSVhsv(249, 72%, 78%)
CMYKcmyk(61.3%, 71.9%, 0%, 22%)
CIE-LABlab(35.06, 48.79, -71.14)
CIE-LCHlch(35.06, 86.26, 304.44°)
OKLaboklab(46.14% 0.0401 -0.2051)
OKLCHoklch(46.14% 0.209 281.1)
XYZxyz(14.7803, 8.5286, 54.8891)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38C7 #B2C738
analogous
#386BC7 #4D38C7 #9438C7
triadic
#4D38C7 #C74D38 #38C74D
tetradic
#4D38C7 #C7386B #B2C738 #38C794
square
#4D38C7 #C7386B #B2C738 #38C794
split-complementary
#4D38C7 #C79438 #6BC738
monochromatic
#281D67 #3B2B97 #4D38C7 #7868D4 #A298E2

Accessibility & contrast

On white

7.76
#4D38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4D38C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38C7
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38C7#FFFFFF#000000##FFFFFF
##4D38C71.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4d38c7;
/* rgb */ color: rgb(77, 56, 199);
/* oklch */ color: oklch(46.1% 0.209 281.1);
Tailwind
colors: {
  custom: {
    50: '#8d71d9',
    500: '#4d38c7',
    950: '#000000',
  },
}
SCSS
$custom: #4d38c7;
$custom-light: #8d71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38c7",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 248.811,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46138,
    "c": 0.20902,
    "h": 281.1
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#4D38C7
secondary
#C4CD8D
accent
#DF48C9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4D38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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