#4D2F8B#4D2F8B

#4D2F8B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.145 H 293.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4D2F8B
RGBrgb(77, 47, 139)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(44.6%, 66.2%, 0%, 45.5%)
CIE-LABlab(28.05, 35.79, -46.55)
CIE-LCHlch(28.05, 58.72, 307.55°)
OKLaboklab(39.52% 0.0583 -0.133)
OKLCHoklch(39.52% 0.145 293.7)
XYZxyz(8.7360, 5.4747, 25.0175)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F8B #6D8B2F
analogous
#2F3F8B #4D2F8B #7B2F8B
triadic
#4D2F8B #8B4D2F #2F8B4D
tetradic
#4D2F8B #8B2F3F #6D8B2F #2F8B7B
square
#4D2F8B #8B2F3F #6D8B2F #2F8B7B
split-complementary
#4D2F8B #8B7B2F #3F8B2F
monochromatic
#1A1030 #34205D #4D2F8B #663EB9 #8968CC

Accessibility & contrast

On white

10.02
#4D2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4D2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F8B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F8B#FFFFFF#000000##FFFFFF
##4D2F8B1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#3C4558
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2f8b;
/* rgb */ color: rgb(77, 47, 139);
/* oklch */ color: oklch(39.5% 0.145 293.7);
Tailwind
colors: {
  custom: {
    50: '#8469ae',
    500: '#4d2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f8b;
$custom-light: #8469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f8b",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 259.565,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39516,
    "c": 0.14521,
    "h": 293.7
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#4D2F8B
secondary
#99B363
accent
#D94FAC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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