#4D31BE#4D31BE

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

Color values

HEX#4D31BE
RGBrgb(77, 49, 190)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 75%)
CMYKcmyk(59.5%, 74.2%, 0%, 25.5%)
CIE-LABlab(32.90, 49.78, -69.41)
CIE-LCHlch(32.90, 85.42, 305.65°)
OKLaboklab(44.35% 0.047 -0.2)
OKLCHoklch(44.35% 0.206 283.2)
XYZxyz(13.4503, 7.4912, 49.4424)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31BE #A2BE31
analogous
#315CBE #4D31BE #9431BE
triadic
#4D31BE #BE4D31 #31BE4D
tetradic
#4D31BE #BE315C #A2BE31 #31BE94
square
#4D31BE #BE315C #A2BE31 #31BE94
split-complementary
#4D31BE #BE9431 #5CBE31
monochromatic
#26185D #39248D #4D31BE #7158D4 #9A89E1

Accessibility & contrast

On white

8.41
#4D31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4D31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31BE
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31BE#FFFFFF#000000##FFFFFF
##4D31BE1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d31be;
/* rgb */ color: rgb(77, 49, 190);
/* oklch */ color: oklch(44.4% 0.206 283.2);
Tailwind
colors: {
  custom: {
    50: '#8c6cd3',
    500: '#4d31be',
    950: '#000000',
  },
}
SCSS
$custom: #4d31be;
$custom-light: #8c6cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31be",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 251.915,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44352,
    "c": 0.20551,
    "h": 283.2
  },
  "luminance": 0.07492
}

Semantic roles & 50–950 ramp

primary
#4D31BE
secondary
#BCCA80
accent
#E246C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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