#4D288B#4D288B

#4D288B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.155 H 295.3°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4D288B
RGBrgb(77, 40, 139)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(44.6%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.62, 39.71, -48.88)
CIE-LCHlch(26.62, 62.97, 309.09°)
OKLaboklab(38.49% 0.066 -0.1398)
OKLCHoklch(38.49% 0.155 295.3)
XYZxyz(8.4783, 4.9592, 24.9316)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D288B #668B28
analogous
#28358B #4D288B #7E288B
triadic
#4D288B #8B4D28 #288B4D
tetradic
#4D288B #8B2835 #668B28 #288B7E
square
#4D288B #8B2835 #668B28 #288B7E
split-complementary
#4D288B #8B7E28 #358B28
monochromatic
#180D2C #331A5B #4D288B #6736BB #885DD0

Accessibility & contrast

On white

10.54
#4D288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D288B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D288B#FFFFFF#000000##FFFFFF
##4D288B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3C4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d288b;
/* rgb */ color: rgb(77, 40, 139);
/* oklch */ color: oklch(38.5% 0.155 295.3);
Tailwind
colors: {
  custom: {
    50: '#8565ae',
    500: '#4d288b',
    950: '#000000',
  },
}
SCSS
$custom: #4d288b;
$custom-light: #8565ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d288b",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 262.424,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.15458,
    "h": 295.3
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#4D288B
secondary
#93B659
accent
#DF49A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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