#4E30B7#4E30B7

#4E30B7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.198 H 284.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4E30B7
RGBrgb(78, 48, 183)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 74%, 72%)
CMYKcmyk(57.4%, 73.8%, 0%, 28.2%)
CIE-LABlab(32.15, 48.37, -66.51)
CIE-LCHlch(32.15, 82.24, 306.03°)
OKLaboklab(43.65% 0.0509 -0.1915)
OKLCHoklch(43.65% 0.198 284.9)
XYZxyz(12.7435, 7.1517, 45.4995)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B7 #99B730
analogous
#3056B7 #4E30B7 #9130B7
triadic
#4E30B7 #B74E30 #30B74E
tetradic
#4E30B7 #B73056 #99B730 #30B791
square
#4E30B7 #B73056 #99B730 #30B791
split-complementary
#4E30B7 #B79130 #56B730
monochromatic
#251756 #392387 #4E30B7 #6F52D2 #9783DE

Accessibility & contrast

On white

8.64
#4E30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4E30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30B7
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B7#FFFFFF#000000##FFFFFF
##4E30B71.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#175571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e30b7;
/* rgb */ color: rgb(78, 48, 183);
/* oklch */ color: oklch(43.6% 0.198 284.9);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4e30b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b7;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b7",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 253.333,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.19815,
    "h": 284.9
  },
  "luminance": 0.07153
}

Semantic roles & 50–950 ramp

primary
#4E30B7
secondary
#B7C87B
accent
#E246BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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