#4D348E#4D348E

#4D348E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.142 H 291.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4D348E
RGBrgb(77, 52, 142)
HSLhsl(257, 46%, 38%)
HSVhsv(257, 63%, 56%)
CMYKcmyk(45.8%, 63.4%, 0%, 44.3%)
CIE-LABlab(29.38, 33.72, -46.25)
CIE-LCHlch(29.38, 57.24, 306.10°)
OKLaboklab(40.56% 0.0523 -0.1321)
OKLCHoklch(40.56% 0.142 291.6)
XYZxyz(9.1697, 5.9865, 26.2583)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D348E #758E34
analogous
#34488E #4D348E #7A348E
triadic
#4D348E #8E4D34 #348E4D
tetradic
#4D348E #8E3448 #758E34 #348E7A
square
#4D348E #8E3448 #758E34 #348E7A
split-complementary
#4D348E #8E7A34 #488E34
monochromatic
#1C1334 #352461 #4D348E #6544BB #8A71CB

Accessibility & contrast

On white

9.56
#4D348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D348E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D348E#FFFFFF#000000##FFFFFF
##4D348E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#3A495C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d348e;
/* rgb */ color: rgb(77, 52, 142);
/* oklch */ color: oklch(40.6% 0.142 291.6);
Tailwind
colors: {
  custom: {
    50: '#846db0',
    500: '#4d348e',
    950: '#000000',
  },
}
SCSS
$custom: #4d348e;
$custom-light: #846db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d348e",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 256.667,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.14206,
    "h": 291.6
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D348E

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

Preview Lab → · Contrast checker → · Palette generator →

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