#4E30B1#4E30B1

#4E30B1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.191 H 285.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4E30B1
RGBrgb(78, 48, 177)
HSLhsl(254, 57%, 44%)
HSVhsv(254, 73%, 69%)
CMYKcmyk(55.9%, 72.9%, 0%, 30.6%)
CIE-LABlab(31.59, 46.60, -63.85)
CIE-LCHlch(31.59, 79.05, 306.12°)
OKLaboklab(43.08% 0.0522 -0.1837)
OKLCHoklch(43.08% 0.191 285.9)
XYZxyz(12.1323, 6.9072, 42.2804)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B1 #93B130
analogous
#3053B1 #4E30B1 #8E30B1
triadic
#4E30B1 #B14E30 #30B14E
tetradic
#4E30B1 #B13053 #93B130 #30B18E
square
#4E30B1 #B13053 #93B130 #30B18E
split-complementary
#4E30B1 #B18E30 #53B130
monochromatic
#241651 #392381 #4E30B1 #6D4FCF #957FDC

Accessibility & contrast

On white

8.82
#4E30B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E30B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30B1
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B1#FFFFFF#000000##FFFFFF
##4E30B11.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#20536D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e30b1;
/* rgb */ color: rgb(78, 48, 177);
/* oklch */ color: oklch(43.1% 0.191 285.9);
Tailwind
colors: {
  custom: {
    50: '#8a6bc9',
    500: '#4e30b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b1;
$custom-light: #8a6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b1",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 253.953,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43083,
    "c": 0.19102,
    "h": 285.9
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#4E30B1
secondary
#B3C578
accent
#E147BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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