#4E30B3#4E30B3

#4E30B3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.193 H 285.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4E30B3
RGBrgb(78, 48, 179)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 70%)
CMYKcmyk(56.4%, 73.2%, 0%, 29.8%)
CIE-LABlab(31.78, 47.19, -64.74)
CIE-LCHlch(31.78, 80.11, 306.09°)
OKLaboklab(43.27% 0.0518 -0.1863)
OKLCHoklch(43.27% 0.193 285.5)
XYZxyz(12.3331, 6.9876, 43.3379)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B3 #95B330
analogous
#3054B3 #4E30B3 #8F30B3
triadic
#4E30B3 #B34E30 #30B34E
tetradic
#4E30B3 #B33054 #95B330 #30B38F
square
#4E30B3 #B33054 #95B330 #30B38F
split-complementary
#4E30B3 #B38F30 #54B330
monochromatic
#241652 #392383 #4E30B3 #6D50D0 #9680DD

Accessibility & contrast

On white

8.76
#4E30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E30B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30B3
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B3#FFFFFF#000000##FFFFFF
##4E30B31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#1E546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e30b3;
/* rgb */ color: rgb(78, 48, 179);
/* oklch */ color: oklch(43.3% 0.193 285.5);
Tailwind
colors: {
  custom: {
    50: '#8b6bcb',
    500: '#4e30b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b3;
$custom-light: #8b6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b3",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 253.74,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43269,
    "c": 0.1934,
    "h": 285.5
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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