#4D34B2#4D34B2

#4D34B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.188 H 284.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#4D34B2
RGBrgb(77, 52, 178)
HSLhsl(252, 55%, 45%)
HSVhsv(252, 71%, 70%)
CMYKcmyk(56.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.36, 44.59, -63.19)
CIE-LCHlch(32.36, 77.34, 305.21°)
OKLaboklab(43.63% 0.0473 -0.1819)
OKLCHoklch(43.63% 0.188 284.6)
XYZxyz(12.3220, 7.2474, 42.8604)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34B2 #99B234
analogous
#345AB2 #4D34B2 #8C34B2
triadic
#4D34B2 #B24D34 #34B24D
tetradic
#4D34B2 #B2345A #99B234 #34B28C
square
#4D34B2 #B2345A #99B234 #34B28C
split-complementary
#4D34B2 #B28C34 #5AB234
monochromatic
#241853 #392683 #4D34B2 #6D56CE #9685DB

Accessibility & contrast

On white

8.57
#4D34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4D34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34B2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34B2#FFFFFF#000000##FFFFFF
##4D34B21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#1B556F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d34b2;
/* rgb */ color: rgb(77, 52, 178);
/* oklch */ color: oklch(43.6% 0.188 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a6eca',
    500: '#4d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d34b2;
$custom-light: #8a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34b2",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 251.905,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43634,
    "c": 0.1879,
    "h": 284.6
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#4D34B2
secondary
#B7C57D
accent
#DE4AC1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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