#4E30B5#4E30B5

#4E30B5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.196 H 285.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4E30B5
RGBrgb(78, 48, 181)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 71%)
CMYKcmyk(56.9%, 73.5%, 0%, 29%)
CIE-LABlab(31.96, 47.78, -65.63)
CIE-LCHlch(31.96, 81.18, 306.06°)
OKLaboklab(43.46% 0.0513 -0.1889)
OKLCHoklch(43.46% 0.196 285.2)
XYZxyz(12.5368, 7.0691, 44.4110)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B5 #97B530
analogous
#3054B5 #4E30B5 #9130B5
triadic
#4E30B5 #B54E30 #30B54E
tetradic
#4E30B5 #B53054 #97B530 #30B591
square
#4E30B5 #B53054 #97B530 #30B591
split-complementary
#4E30B5 #B59130 #54B530
monochromatic
#241654 #392385 #4E30B5 #6E51D1 #9682DE

Accessibility & contrast

On white

8.70
#4E30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30B5
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B5#FFFFFF#000000##FFFFFF
##4E30B51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#1B5470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e30b5;
/* rgb */ color: rgb(78, 48, 181);
/* oklch */ color: oklch(43.5% 0.196 285.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ccc',
    500: '#4e30b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b5;
$custom-light: #8b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b5",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 253.534,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43457,
    "c": 0.19579,
    "h": 285.2
  },
  "luminance": 0.0707
}

Semantic roles & 50–950 ramp

primary
#4E30B5
secondary
#B6C77A
accent
#E146BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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