#4D288D#4D288D

#4D288D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.157 H 294.7°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#4D288D
RGBrgb(77, 40, 141)
HSLhsl(262, 56%, 35%)
HSVhsv(262, 72%, 55%)
CMYKcmyk(45.4%, 71.6%, 0%, 44.7%)
CIE-LABlab(26.79, 40.27, -49.84)
CIE-LCHlch(26.79, 64.08, 308.93°)
OKLaboklab(38.66% 0.0656 -0.1426)
OKLCHoklch(38.66% 0.157 294.7)
XYZxyz(8.6258, 5.0182, 25.7083)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D288D #688D28
analogous
#28368D #4D288D #7F288D
triadic
#4D288D #8D4D28 #288D4D
tetradic
#4D288D #8D2836 #688D28 #288D7F
square
#4D288D #8D2836 #688D28 #288D7F
split-complementary
#4D288D #8D7F28 #368D28
monochromatic
#190D2E #331A5D #4D288D #6736BD #885ED1

Accessibility & contrast

On white

10.48
#4D288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D288D
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D288D#FFFFFF#000000##FFFFFF
##4D288D1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3B4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d288d;
/* rgb */ color: rgb(77, 40, 141);
/* oklch */ color: oklch(38.7% 0.157 294.7);
Tailwind
colors: {
  custom: {
    50: '#8565af',
    500: '#4d288d',
    950: '#000000',
  },
}
SCSS
$custom: #4d288d;
$custom-light: #8565af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d288d",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 261.98,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38662,
    "c": 0.15701,
    "h": 294.7
  },
  "luminance": 0.05018
}

Semantic roles & 50–950 ramp

primary
#4D288D
secondary
#95B75A
accent
#DF49A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D288D

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

Preview Lab → · Contrast checker → · Palette generator →

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