#4D288E#4D288E

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

Color values

HEX#4D288E
RGBrgb(77, 40, 142)
HSLhsl(262, 56%, 36%)
HSVhsv(262, 72%, 56%)
CMYKcmyk(45.8%, 71.8%, 0%, 44.3%)
CIE-LABlab(26.87, 40.55, -50.33)
CIE-LCHlch(26.87, 64.63, 308.86°)
OKLaboklab(38.75% 0.0654 -0.144)
OKLCHoklch(38.75% 0.158 294.4)
XYZxyz(8.7005, 5.0481, 26.1019)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D288E #698E28
analogous
#28368E #4D288E #80288E
triadic
#4D288E #8E4D28 #288E4D
tetradic
#4D288E #8E2836 #698E28 #288E80
square
#4D288E #8E2836 #698E28 #288E80
split-complementary
#4D288E #8E8028 #368E28
monochromatic
#190D2F #331B5E #4D288E #6735BE #885FD2

Accessibility & contrast

On white

10.45
#4D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D288E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D288E#FFFFFF#000000##FFFFFF
##4D288E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#3B4258
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d288e;
/* rgb */ color: rgb(77, 40, 142);
/* oklch */ color: oklch(38.7% 0.158 294.4);
Tailwind
colors: {
  custom: {
    50: '#8565b0',
    500: '#4d288e',
    950: '#000000',
  },
}
SCSS
$custom: #4d288e;
$custom-light: #8565b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d288e",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 261.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.15821,
    "h": 294.4
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

primary
#4D288E
secondary
#96B75B
accent
#DF48A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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