#4E30A8#4E30A8

#4E30A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.180 H 287.5°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4E30A8
RGBrgb(78, 48, 168)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 71%, 66%)
CMYKcmyk(53.6%, 71.4%, 0%, 34.1%)
CIE-LABlab(30.78, 43.95, -59.79)
CIE-LCHlch(30.78, 74.20, 306.32°)
OKLaboklab(42.26% 0.0542 -0.1718)
OKLCHoklch(42.26% 0.18 287.5)
XYZxyz(11.2646, 6.5602, 37.7109)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A8 #8AA830
analogous
#304EA8 #4E30A8 #8A30A8
triadic
#4E30A8 #A84E30 #30A84E
tetradic
#4E30A8 #A8304E #8AA830 #30A88A
square
#4E30A8 #A8304E #8AA830 #30A88A
split-complementary
#4E30A8 #A88A30 #4EA830
monochromatic
#221549 #382278 #4E30A8 #6A4ACB #917AD9

Accessibility & contrast

On white

9.08
#4E30A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E30A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A8
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A8#FFFFFF#000000##FFFFFF
##4E30A81.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#2A5068
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e30a8;
/* rgb */ color: rgb(78, 48, 168);
/* oklch */ color: oklch(42.3% 0.180 287.5);
Tailwind
colors: {
  custom: {
    50: '#896bc3',
    500: '#4e30a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a8;
$custom-light: #896bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a8",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 255,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.18017,
    "h": 287.5
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#4E30A8
secondary
#AEC173
accent
#DF49B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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