#4E34BB#4E34BB

#4E34BB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.199 H 283.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4E34BB
RGBrgb(78, 52, 187)
HSLhsl(252, 56%, 47%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(58.3%, 72.2%, 0%, 26.7%)
CIE-LABlab(33.27, 47.45, -67.03)
CIE-LCHlch(33.27, 82.13, 305.29°)
OKLaboklab(44.55% 0.0469 -0.1931)
OKLCHoklch(44.55% 0.199 283.7)
XYZxyz(13.3368, 7.6627, 47.7803)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34BB #A1BB34
analogous
#345DBB #4E34BB #9234BB
triadic
#4E34BB #BB4E34 #34BB4E
tetradic
#4E34BB #BB345D #A1BB34 #34BB92
square
#4E34BB #BB345D #A1BB34 #34BB92
split-complementary
#4E34BB #BB9234 #5DBB34
monochromatic
#26195B #3A278B #4E34BB #725BD1 #9B8BDF

Accessibility & contrast

On white

8.29
#4E34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4E34BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34BB
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34BB#FFFFFF#000000##FFFFFF
##4E34BB1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#0D5974
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e34bb;
/* rgb */ color: rgb(78, 52, 187);
/* oklch */ color: oklch(44.6% 0.199 283.7);
Tailwind
colors: {
  custom: {
    50: '#8c6ed1',
    500: '#4e34bb',
    950: '#000000',
  },
}
SCSS
$custom: #4e34bb;
$custom-light: #8c6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34bb",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 251.556,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44551,
    "c": 0.1987,
    "h": 283.7
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#4E34BB
secondary
#BBC982
accent
#E048C3
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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