#4E30AF#4E30AF

#4E30AF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.189 H 286.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4E30AF
RGBrgb(78, 48, 175)
HSLhsl(254, 57%, 44%)
HSVhsv(254, 73%, 69%)
CMYKcmyk(55.4%, 72.6%, 0%, 31.4%)
CIE-LABlab(31.41, 46.01, -62.96)
CIE-LCHlch(31.41, 77.98, 306.16°)
OKLaboklab(42.9% 0.0527 -0.1811)
OKLCHoklch(42.9% 0.189 286.2)
XYZxyz(11.9344, 6.8281, 41.2382)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30AF #91AF30
analogous
#3051AF #4E30AF #8D30AF
triadic
#4E30AF #AF4E30 #30AF4E
tetradic
#4E30AF #AF3051 #91AF30 #30AF8D
square
#4E30AF #AF3051 #91AF30 #30AF8D
split-complementary
#4E30AF #AF8D30 #51AF30
monochromatic
#23164F #39237F #4E30AF #6C4ECE #947EDC

Accessibility & contrast

On white

8.88
#4E30AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E30AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30AF
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30AF#FFFFFF#000000##FFFFFF
##4E30AF1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#23526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e30af;
/* rgb */ color: rgb(78, 48, 175);
/* oklch */ color: oklch(42.9% 0.189 286.2);
Tailwind
colors: {
  custom: {
    50: '#8a6bc8',
    500: '#4e30af',
    950: '#000000',
  },
}
SCSS
$custom: #4e30af;
$custom-light: #8a6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30af",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 254.173,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42898,
    "c": 0.18863,
    "h": 286.2
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#4E30AF
secondary
#B2C476
accent
#E048BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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