#4D38D3#4D38D3

#4D38D3 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 47.3% C 0.223 H 279.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#4D38D3
RGBrgb(77, 56, 211)
HSLhsl(248, 64%, 52%)
HSVhsv(248, 73%, 83%)
CMYKcmyk(63.5%, 73.5%, 0%, 17.3%)
CIE-LABlab(36.19, 52.42, -76.25)
CIE-LCHlch(36.19, 92.53, 304.51°)
OKLaboklab(47.28% 0.0376 -0.2201)
OKLCHoklch(47.28% 0.223 279.7)
XYZxyz(16.2289, 9.1080, 62.5182)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38D3 #BED338
analogous
#3871D3 #4D38D3 #9B38D3
triadic
#4D38D3 #D34D38 #38D34D
tetradic
#4D38D3 #D33871 #BED338 #38D39B
square
#4D38D3 #D33871 #BED338 #38D39B
split-complementary
#4D38D3 #D39B38 #71D338
monochromatic
#271A76 #3725A9 #4D38D3 #7A6ADE #A79CE9

Accessibility & contrast

On white

7.44
#4D38D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4D38D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38D3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38D3#FFFFFF#000000##FFFFFF
##4D38D31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD7
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#006483
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4d38d3;
/* rgb */ color: rgb(77, 56, 211);
/* oklch */ color: oklch(47.3% 0.223 279.7);
Tailwind
colors: {
  custom: {
    50: '#8f72e2',
    500: '#4d38d3',
    950: '#000000',
  },
}
SCSS
$custom: #4d38d3;
$custom-light: #8f72e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38d3",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 248.129,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47281,
    "c": 0.22325,
    "h": 279.7
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#4D38D3
secondary
#CCD592
accent
#E741D0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4D38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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