#4D31BF#4D31BF

#4D31BF is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.207 H 283.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4D31BF
RGBrgb(77, 49, 191)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 75%)
CMYKcmyk(59.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(33.00, 50.08, -69.85)
CIE-LCHlch(33.00, 85.94, 305.64°)
OKLaboklab(44.45% 0.0468 -0.2013)
OKLCHoklch(44.45% 0.207 283.1)
XYZxyz(13.5599, 7.5351, 50.0200)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31BF #A3BF31
analogous
#315CBF #4D31BF #9431BF
triadic
#4D31BF #BF4D31 #31BF4D
tetradic
#4D31BF #BF315C #A3BF31 #31BF94
square
#4D31BF #BF315C #A3BF31 #31BF94
split-complementary
#4D31BF #BF9431 #5CBF31
monochromatic
#26185E #39258E #4D31BF #7159D4 #9B8AE1

Accessibility & contrast

On white

8.38
#4D31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4D31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31BF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31BF#FFFFFF#000000##FFFFFF
##4D31BF1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d31bf;
/* rgb */ color: rgb(77, 49, 191);
/* oklch */ color: oklch(44.4% 0.207 283.1);
Tailwind
colors: {
  custom: {
    50: '#8c6dd4',
    500: '#4d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #4d31bf;
$custom-light: #8c6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31bf",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 251.831,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44448,
    "c": 0.20669,
    "h": 283.1
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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