#4D38D7#4D38D7

#4D38D7 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.7% C 0.228 H 279.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#4D38D7
RGBrgb(77, 56, 215)
HSLhsl(248, 67%, 53%)
HSVhsv(248, 74%, 84%)
CMYKcmyk(64.2%, 74%, 0%, 15.7%)
CIE-LABlab(36.58, 53.63, -77.92)
CIE-LCHlch(36.58, 94.59, 304.54°)
OKLaboklab(47.67% 0.0367 -0.2249)
OKLCHoklch(47.67% 0.228 279.3)
XYZxyz(16.7366, 9.3111, 65.1920)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38D7 #C2D738
analogous
#3872D7 #4D38D7 #9D38D7
triadic
#4D38D7 #D74D38 #38D74D
tetradic
#4D38D7 #D73872 #C2D738 #38D79D
square
#4D38D7 #D73872 #C2D738 #38D79D
split-complementary
#4D38D7 #D79D38 #72D738
monochromatic
#26197C #3623AF #4D38D7 #7B6BE1 #A89EEB

Accessibility & contrast

On white

7.34
#4D38D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4D38D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38D7
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38D7#FFFFFF#000000##FFFFFF
##4D38D71.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006585
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d38d7;
/* rgb */ color: rgb(77, 56, 215);
/* oklch */ color: oklch(47.7% 0.228 279.3);
Tailwind
colors: {
  custom: {
    50: '#9072e5',
    500: '#4d38d7',
    950: '#000000',
  },
}
SCSS
$custom: #4d38d7;
$custom-light: #9072e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38d7",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 247.925,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47669,
    "c": 0.22792,
    "h": 279.3
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#4D38D7
secondary
#CFD893
accent
#E93ED3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4D38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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