#4D34AA#4D34AA

#4D34AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.178 H 285.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#4D34AA
RGBrgb(77, 52, 170)
HSLhsl(253, 53%, 44%)
HSVhsv(253, 69%, 67%)
CMYKcmyk(54.7%, 69.4%, 0%, 33.3%)
CIE-LABlab(31.66, 42.17, -59.56)
CIE-LCHlch(31.66, 72.98, 305.30°)
OKLaboklab(42.91% 0.0488 -0.1712)
OKLCHoklch(42.91% 0.178 285.9)
XYZxyz(11.5421, 6.9354, 38.7529)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34AA #91AA34
analogous
#3456AA #4D34AA #8834AA
triadic
#4D34AA #AA4D34 #34AA4D
tetradic
#4D34AA #AA3456 #91AA34 #34AA88
square
#4D34AA #AA3456 #91AA34 #34AA88
split-complementary
#4D34AA #AA8834 #56AA34
monochromatic
#23174C #38267B #4D34AA #6B51CA #9380D8

Accessibility & contrast

On white

8.80
#4D34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4D34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34AA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34AA#FFFFFF#000000##FFFFFF
##4D34AA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#25536B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d34aa;
/* rgb */ color: rgb(77, 52, 170);
/* oklch */ color: oklch(42.9% 0.178 285.9);
Tailwind
colors: {
  custom: {
    50: '#886dc4',
    500: '#4d34aa',
    950: '#000000',
  },
}
SCSS
$custom: #4d34aa;
$custom-light: #886dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34aa",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 252.712,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42914,
    "c": 0.17803,
    "h": 285.9
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#4D34AA
secondary
#B2C178
accent
#DD4BBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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