#4E38D9#4E38D9

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

Color values

HEX#4E38D9
RGBrgb(78, 56, 217)
HSLhsl(248, 68%, 54%)
HSVhsv(248, 74%, 85%)
CMYKcmyk(64.1%, 74.2%, 0%, 14.9%)
CIE-LABlab(36.85, 54.34, -78.62)
CIE-LCHlch(36.85, 95.57, 304.65°)
OKLaboklab(47.94% 0.0376 -0.227)
OKLCHoklch(47.94% 0.23 279.4)
XYZxyz(17.0764, 9.4564, 66.5576)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38D9 #C3D938
analogous
#3872D9 #4E38D9 #9E38D9
triadic
#4E38D9 #D94E38 #38D94E
tetradic
#4E38D9 #D93872 #C3D938 #38D99E
square
#4E38D9 #D93872 #C3D938 #38D99E
split-complementary
#4E38D9 #D99E38 #72D938
monochromatic
#26187E #3622B2 #4E38D9 #7C6BE3 #A99FED

Accessibility & contrast

On white

7.26
#4E38D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4E38D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38D9
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38D9#FFFFFF#000000##FFFFFF
##4E38D91.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e38d9;
/* rgb */ color: rgb(78, 56, 217);
/* oklch */ color: oklch(47.9% 0.230 279.4);
Tailwind
colors: {
  custom: {
    50: '#9172e6',
    500: '#4e38d9',
    950: '#000000',
  },
}
SCSS
$custom: #4e38d9;
$custom-light: #9172e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38d9",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 248.199,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47939,
    "c": 0.23006,
    "h": 279.4
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#4E38D9
secondary
#CFD994
accent
#EB3DD3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4E38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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