#4D348B#4D348B

#4D348B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.138 H 292.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4D348B
RGBrgb(77, 52, 139)
HSLhsl(257, 46%, 37%)
HSVhsv(257, 63%, 55%)
CMYKcmyk(44.6%, 62.6%, 0%, 45.5%)
CIE-LABlab(29.15, 32.83, -44.76)
CIE-LCHlch(29.15, 55.51, 306.26°)
OKLaboklab(40.32% 0.0524 -0.1277)
OKLCHoklch(40.32% 0.138 292.3)
XYZxyz(8.9475, 5.8976, 25.0880)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D348B #728B34
analogous
#34478B #4D348B #78348B
triadic
#4D348B #8B4D34 #348B4D
tetradic
#4D348B #8B3447 #728B34 #348B78
square
#4D348B #8B3447 #728B34 #348B78
split-complementary
#4D348B #8B7834 #478B34
monochromatic
#1C1332 #34235E #4D348B #6645B8 #8A70C9

Accessibility & contrast

On white

9.63
#4D348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D348B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D348B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D348B#FFFFFF#000000##FFFFFF
##4D348B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#3B485A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d348b;
/* rgb */ color: rgb(77, 52, 139);
/* oklch */ color: oklch(40.3% 0.138 292.3);
Tailwind
colors: {
  custom: {
    50: '#846dad',
    500: '#4d348b',
    950: '#000000',
  },
}
SCSS
$custom: #4d348b;
$custom-light: #846dad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d348b",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 257.241,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.13807,
    "h": 292.3
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#4D348B
secondary
#9DB269
accent
#D553B0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D348B

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

Preview Lab → · Contrast checker → · Palette generator →

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