#4E31B8#4E31B8

#4E31B8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.198 H 284.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4E31B8
RGBrgb(78, 49, 184)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.43, 48.14, -66.64)
CIE-LCHlch(32.43, 82.21, 305.84°)
OKLaboklab(43.87% 0.0499 -0.1919)
OKLCHoklch(43.87% 0.198 284.6)
XYZxyz(12.8893, 7.2762, 46.0634)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B8 #9BB831
analogous
#3157B8 #4E31B8 #9131B8
triadic
#4E31B8 #B84E31 #31B84E
tetradic
#4E31B8 #B83157 #9BB831 #31B891
square
#4E31B8 #B83157 #9BB831 #31B891
split-complementary
#4E31B8 #B89131 #57B831
monochromatic
#251757 #3A2488 #4E31B8 #6F55D2 #9885DE

Accessibility & contrast

On white

8.55
#4E31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4E31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B8#FFFFFF#000000##FFFFFF
##4E31B81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#155672
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e31b8;
/* rgb */ color: rgb(78, 49, 184);
/* oklch */ color: oklch(43.9% 0.198 284.6);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4e31b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b8;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b8",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 252.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43869,
    "c": 0.1983,
    "h": 284.6
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#4E31B8
secondary
#B8C87D
accent
#E147C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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