#4E34B8#4E34B8

#4E34B8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.195 H 284.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4E34B8
RGBrgb(78, 52, 184)
HSLhsl(252, 56%, 46%)
HSVhsv(252, 72%, 72%)
CMYKcmyk(57.6%, 71.7%, 0%, 27.8%)
CIE-LABlab(33.00, 46.55, -65.71)
CIE-LCHlch(33.00, 80.53, 305.31°)
OKLaboklab(44.27% 0.0476 -0.1892)
OKLCHoklch(44.27% 0.195 284.1)
XYZxyz(13.0190, 7.5356, 46.1066)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B8 #9EB834
analogous
#345CB8 #4E34B8 #9034B8
triadic
#4E34B8 #B84E34 #34B84E
tetradic
#4E34B8 #B8345C #9EB834 #34B890
square
#4E34B8 #B8345C #9EB834 #34B890
split-complementary
#4E34B8 #B89034 #5CB834
monochromatic
#261959 #3A2788 #4E34B8 #7159D0 #9A89DE

Accessibility & contrast

On white

8.38
#4E34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4E34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B8
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B8#FFFFFF#000000##FFFFFF
##4E34B81.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#155872
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e34b8;
/* rgb */ color: rgb(78, 52, 184);
/* oklch */ color: oklch(44.3% 0.195 284.1);
Tailwind
colors: {
  custom: {
    50: '#8b6ece',
    500: '#4e34b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b8;
$custom-light: #8b6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b8",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 251.818,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44273,
    "c": 0.19508,
    "h": 284.1
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#4E34B8
secondary
#BAC880
accent
#DF49C2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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