#4D34B9#4D34B9

#4D34B9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.196 H 283.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4D34B9
RGBrgb(77, 52, 185)
HSLhsl(251, 56%, 46%)
HSVhsv(251, 72%, 73%)
CMYKcmyk(58.4%, 71.9%, 0%, 27.5%)
CIE-LABlab(33.00, 46.71, -66.30)
CIE-LCHlch(33.00, 81.10, 305.16°)
OKLaboklab(44.28% 0.0459 -0.191)
OKLCHoklch(44.28% 0.196 283.5)
XYZxyz(13.0428, 7.5357, 46.6568)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34B9 #A0B934
analogous
#345EB9 #4D34B9 #9034B9
triadic
#4D34B9 #B94D34 #34B94D
tetradic
#4D34B9 #B9345E #A0B934 #34B990
square
#4D34B9 #B9345E #A0B934 #34B990
split-complementary
#4D34B9 #B99034 #5EB934
monochromatic
#251959 #392789 #4D34B9 #705AD1 #9989DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D34B9#FFFFFF#000000##FFFFFF
##4D34B91.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)
#0052BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#0C5873
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d34b9;
/* rgb */ color: rgb(77, 52, 185);
/* oklch */ color: oklch(44.3% 0.196 283.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ecf',
    500: '#4d34b9',
    950: '#000000',
  },
}
SCSS
$custom: #4d34b9;
$custom-light: #8b6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34b9",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 251.278,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44279,
    "c": 0.19642,
    "h": 283.5
  },
  "luminance": 0.07537
}

Semantic roles & 50–950 ramp

primary
#4D34B9
secondary
#BBC881
accent
#DF48C3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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