#4D38C4#4D38C4

#4D38C4 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.9% C 0.205 H 281.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4D38C4
RGBrgb(77, 56, 196)
HSLhsl(249, 56%, 49%)
HSVhsv(249, 71%, 77%)
CMYKcmyk(60.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(34.78, 47.87, -69.84)
CIE-LCHlch(34.78, 84.67, 304.43°)
OKLaboklab(45.86% 0.0407 -0.2013)
OKLCHoklch(45.86% 0.205 281.4)
XYZxyz(14.4354, 8.3906, 53.0727)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38C4 #AFC438
analogous
#3869C4 #4D38C4 #9338C4
triadic
#4D38C4 #C44D38 #38C44D
tetradic
#4D38C4 #C43869 #AFC438 #38C493
square
#4D38C4 #C43869 #AFC438 #38C493
split-complementary
#4D38C4 #C49338 #69C438
monochromatic
#281D65 #3A2A94 #4D38C4 #7666D3 #A196E1

Accessibility & contrast

On white

7.84
#4D38C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4D38C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38C4
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38C4#FFFFFF#000000##FFFFFF
##4D38C41.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#005E7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4d38c4;
/* rgb */ color: rgb(77, 56, 196);
/* oklch */ color: oklch(45.9% 0.205 281.4);
Tailwind
colors: {
  custom: {
    50: '#8c71d7',
    500: '#4d38c4',
    950: '#000000',
  },
}
SCSS
$custom: #4d38c4;
$custom-light: #8c71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38c4",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 249,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.20541,
    "h": 281.4
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#4D38C4
secondary
#C3CC8C
accent
#DF49C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4D38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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