#4E31BF#4E31BF

#4E31BF is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.207 H 283.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4E31BF
RGBrgb(78, 49, 191)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 75%)
CMYKcmyk(59.2%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.09, 50.21, -69.69)
CIE-LCHlch(33.09, 85.89, 305.77°)
OKLaboklab(44.53% 0.0482 -0.2008)
OKLCHoklch(44.53% 0.207 283.5)
XYZxyz(13.6413, 7.5770, 50.0238)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31BF #A2BF31
analogous
#315BBF #4E31BF #9531BF
triadic
#4E31BF #BF4E31 #31BF4E
tetradic
#4E31BF #BF315B #A2BF31 #31BF95
square
#4E31BF #BF315B #A2BF31 #31BF95
split-complementary
#4E31BF #BF9531 #5BBF31
monochromatic
#26185E #3A258E #4E31BF #7259D4 #9B8AE1

Accessibility & contrast

On white

8.35
#4E31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31BF
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31BF#FFFFFF#000000##FFFFFF
##4E31BF1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#0049BC
Tritanopia (blue-blind)
#015976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e31bf;
/* rgb */ color: rgb(78, 49, 191);
/* oklch */ color: oklch(44.5% 0.207 283.5);
Tailwind
colors: {
  custom: {
    50: '#8c6dd4',
    500: '#4e31bf',
    950: '#000000',
  },
}
SCSS
$custom: #4e31bf;
$custom-light: #8c6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31bf",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 252.254,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44534,
    "c": 0.20655,
    "h": 283.5
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#4E31BF
secondary
#BCCB81
accent
#E245C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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