#4D348D#4D348D

#4D348D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.141 H 291.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4D348D
RGBrgb(77, 52, 141)
HSLhsl(257, 46%, 38%)
HSVhsv(257, 63%, 55%)
CMYKcmyk(45.4%, 63.1%, 0%, 44.7%)
CIE-LABlab(29.30, 33.42, -45.76)
CIE-LCHlch(29.30, 56.66, 306.15°)
OKLaboklab(40.48% 0.0523 -0.1306)
OKLCHoklch(40.48% 0.141 291.8)
XYZxyz(9.0949, 5.9566, 25.8647)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D348D #748D34
analogous
#34478D #4D348D #79348D
triadic
#4D348D #8D4D34 #348D4D
tetradic
#4D348D #8D3447 #748D34 #348D79
square
#4D348D #8D3447 #748D34 #348D79
split-complementary
#4D348D #8D7934 #478D34
monochromatic
#1C1334 #352460 #4D348D #6544BA #8A71CB

Accessibility & contrast

On white

9.58
#4D348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D348D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D348D#FFFFFF#000000##FFFFFF
##4D348D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#3A485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d348d;
/* rgb */ color: rgb(77, 52, 141);
/* oklch */ color: oklch(40.5% 0.141 291.8);
Tailwind
colors: {
  custom: {
    50: '#846daf',
    500: '#4d348d',
    950: '#000000',
  },
}
SCSS
$custom: #4d348d;
$custom-light: #846daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d348d",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 256.854,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.14073,
    "h": 291.8
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#4D348D
secondary
#9EB36A
accent
#D652B1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D348D

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

Preview Lab → · Contrast checker → · Palette generator →

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