#4E38BD#4E38BD

#4E38BD is a mid, vivid blue. Relative luminance 0.081; OKLCH L 45.3% C 0.197 H 282.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4E38BD
RGBrgb(78, 56, 189)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 70%, 74%)
CMYKcmyk(58.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.23, 45.88, -66.63)
CIE-LCHlch(34.23, 80.90, 304.55°)
OKLaboklab(45.29% 0.0434 -0.1919)
OKLCHoklch(45.29% 0.197 282.7)
XYZxyz(13.7385, 8.1213, 48.9779)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E38BD #A7BD38
analogous
#3864BD #4E38BD #9038BD
triadic
#4E38BD #BD4E38 #38BD4E
tetradic
#4E38BD #BD3864 #A7BD38 #38BD90
square
#4E38BD #BD3864 #A7BD38 #38BD90
split-complementary
#4E38BD #BD9038 #64BD38
monochromatic
#271C5F #3B2A8E #4E38BD #7462D0 #9E91DE

Accessibility & contrast

On white

8.00
#4E38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4E38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E38BD
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E38BD#FFFFFF#000000##FFFFFF
##4E38BD1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#055C76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e38bd;
/* rgb */ color: rgb(78, 56, 189);
/* oklch */ color: oklch(45.3% 0.197 282.7);
Tailwind
colors: {
  custom: {
    50: '#8c71d2',
    500: '#4e38bd',
    950: '#000000',
  },
}
SCSS
$custom: #4e38bd;
$custom-light: #8c71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e38bd",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 249.925,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.19676,
    "h": 282.7
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#4E38BD
secondary
#BEC987
accent
#DE4AC5
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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