#4D38D9#4D38D9

#4D38D9 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.9% C 0.230 H 279.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4D38D9
RGBrgb(77, 56, 217)
HSLhsl(248, 68%, 54%)
HSVhsv(248, 74%, 85%)
CMYKcmyk(64.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(36.77, 54.23, -78.75)
CIE-LCHlch(36.77, 95.61, 304.55°)
OKLaboklab(47.86% 0.0363 -0.2274)
OKLCHoklch(47.86% 0.23 279.1)
XYZxyz(16.9951, 9.4145, 66.5538)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38D9 #C4D938
analogous
#3873D9 #4D38D9 #9D38D9
triadic
#4D38D9 #D94D38 #38D94D
tetradic
#4D38D9 #D93873 #C4D938 #38D99D
square
#4D38D9 #D93873 #C4D938 #38D99D
split-complementary
#4D38D9 #D99D38 #73D938
monochromatic
#25187E #3522B2 #4D38D9 #7B6BE3 #A99FED

Accessibility & contrast

On white

7.28
#4D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4D38D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38D9
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38D9#FFFFFF#000000##FFFFFF
##4D38D91.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDE
Deuteranopia (green-blind)
#0050D6
Tritanopia (blue-blind)
#006686
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d38d9;
/* rgb */ color: rgb(77, 56, 217);
/* oklch */ color: oklch(47.9% 0.230 279.1);
Tailwind
colors: {
  custom: {
    50: '#9072e6',
    500: '#4d38d9',
    950: '#000000',
  },
}
SCSS
$custom: #4d38d9;
$custom-light: #9072e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38d9",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 247.826,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47864,
    "c": 0.23025,
    "h": 279.1
  },
  "luminance": 0.09416
}

Semantic roles & 50–950 ramp

primary
#4D38D9
secondary
#D0D994
accent
#EB3DD4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4D38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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