#4D31B2#4D31B2

#4D31B2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.191 H 285.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4D31B2
RGBrgb(77, 49, 178)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 72%, 70%)
CMYKcmyk(56.7%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.78, 46.22, -64.15)
CIE-LCHlch(31.78, 79.06, 305.77°)
OKLaboklab(43.22% 0.0498 -0.1846)
OKLCHoklch(43.22% 0.191 285.1)
XYZxyz(12.1923, 6.9880, 42.8172)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31B2 #96B231
analogous
#3156B2 #4D31B2 #8D31B2
triadic
#4D31B2 #B24D31 #31B24D
tetradic
#4D31B2 #B23156 #96B231 #31B28D
square
#4D31B2 #B23156 #96B231 #31B28D
split-complementary
#4D31B2 #B28D31 #56B231
monochromatic
#231752 #382482 #4D31B2 #6C51CF #9581DC

Accessibility & contrast

On white

8.76
#4D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4D31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31B2
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31B2#FFFFFF#000000##FFFFFF
##4D31B21.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#1B546E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d31b2;
/* rgb */ color: rgb(77, 49, 178);
/* oklch */ color: oklch(43.2% 0.191 285.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cca',
    500: '#4d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d31b2;
$custom-light: #8a6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31b2",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 253.023,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43219,
    "c": 0.19123,
    "h": 285.1
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#4D31B2
secondary
#B5C579
accent
#E048BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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