#4D34AF#4D34AF

#4D34AF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.184 H 285.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4D34AF
RGBrgb(77, 52, 175)
HSLhsl(252, 54%, 45%)
HSVhsv(252, 70%, 69%)
CMYKcmyk(56%, 70.3%, 0%, 31.4%)
CIE-LABlab(32.10, 43.69, -61.84)
CIE-LCHlch(32.10, 75.71, 305.24°)
OKLaboklab(43.36% 0.0479 -0.1779)
OKLCHoklch(43.36% 0.184 285.1)
XYZxyz(12.0241, 7.1282, 41.2914)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34AF #96AF34
analogous
#3459AF #4D34AF #8B34AF
triadic
#4D34AF #AF4D34 #34AF4D
tetradic
#4D34AF #AF3459 #96AF34 #34AF8B
square
#4D34AF #AF3459 #96AF34 #34AF8B
split-complementary
#4D34AF #AF8B34 #59AF34
monochromatic
#231851 #382680 #4D34AF #6C54CC #9583DA

Accessibility & contrast

On white

8.66
#4D34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4D34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34AF
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34AF#FFFFFF#000000##FFFFFF
##4D34AF1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#1F546D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d34af;
/* rgb */ color: rgb(77, 52, 175);
/* oklch */ color: oklch(43.4% 0.184 285.1);
Tailwind
colors: {
  custom: {
    50: '#896ec8',
    500: '#4d34af',
    950: '#000000',
  },
}
SCSS
$custom: #4d34af;
$custom-light: #896ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34af",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 252.195,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43362,
    "c": 0.18422,
    "h": 285.1
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#4D34AF
secondary
#B5C47B
accent
#DE4AC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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