#4E30B4#4E30B4

#4E30B4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.195 H 285.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4E30B4
RGBrgb(78, 48, 180)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 71%)
CMYKcmyk(56.7%, 73.3%, 0%, 29.4%)
CIE-LABlab(31.87, 47.48, -65.18)
CIE-LCHlch(31.87, 80.65, 306.07°)
OKLaboklab(43.36% 0.0516 -0.1876)
OKLCHoklch(43.36% 0.195 285.4)
XYZxyz(12.4346, 7.0282, 43.8725)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B4 #96B430
analogous
#3054B4 #4E30B4 #9030B4
triadic
#4E30B4 #B44E30 #30B44E
tetradic
#4E30B4 #B43054 #96B430 #30B490
square
#4E30B4 #B43054 #96B430 #30B490
split-complementary
#4E30B4 #B49030 #54B430
monochromatic
#241653 #392384 #4E30B4 #6E51D1 #9681DD

Accessibility & contrast

On white

8.73
#4E30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E30B4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B4#FFFFFF#000000##FFFFFF
##4E30B41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#1C546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e30b4;
/* rgb */ color: rgb(78, 48, 180);
/* oklch */ color: oklch(43.4% 0.195 285.4);
Tailwind
colors: {
  custom: {
    50: '#8b6bcc',
    500: '#4e30b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b4;
$custom-light: #8b6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b4",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 253.636,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43363,
    "c": 0.1946,
    "h": 285.4
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#4E30B4
secondary
#B5C679
accent
#E147BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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