#4D337B#4D337B

#4D337B is a dark, moderate violet. Relative luminance 0.054; OKLCH L 38.9% C 0.118 H 297.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4D337B
RGBrgb(77, 51, 123)
HSLhsl(262, 41%, 34%)
HSVhsv(262, 59%, 48%)
CMYKcmyk(37.4%, 58.5%, 0%, 51.8%)
CIE-LABlab(27.78, 28.75, -36.98)
CIE-LCHlch(27.78, 46.85, 307.86°)
OKLaboklab(38.95% 0.0541 -0.1049)
OKLCHoklch(38.95% 0.118 297.3)
XYZxyz(7.8186, 5.3754, 19.3607)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D337B #617B33
analogous
#333D7B #4D337B #71337B
triadic
#4D337B #7B4D33 #337B4D
tetradic
#4D337B #7B333D #617B33 #337B71
square
#4D337B #7B333D #617B33 #337B71
split-complementary
#4D337B #7B7133 #3D7B33
monochromatic
#170F24 #322150 #4D337B #6845A6 #8868C0

Accessibility & contrast

On white

10.12
#4D337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4D337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D337B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D337B#FFFFFF#000000##FFFFFF
##4D337B1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427D
Deuteranopia (green-blind)
#1A4179
Tritanopia (blue-blind)
#424252
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d337b;
/* rgb */ color: rgb(77, 51, 123);
/* oklch */ color: oklch(38.9% 0.118 297.3);
Tailwind
colors: {
  custom: {
    50: '#826ca2',
    500: '#4d337b',
    950: '#000000',
  },
}
SCSS
$custom: #4d337b;
$custom-light: #826ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d337b",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 261.667,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.11798,
    "h": 297.3
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#4D337B
secondary
#8FA862
accent
#D157A5
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4D337B

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

Preview Lab → · Contrast checker → · Palette generator →

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