#4D2E8B#4D2E8B

#4D2E8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.147 H 293.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4D2E8B
RGBrgb(77, 46, 139)
HSLhsl(260, 50%, 36%)
HSVhsv(260, 67%, 55%)
CMYKcmyk(44.6%, 66.9%, 0%, 45.5%)
CIE-LABlab(27.83, 36.37, -46.90)
CIE-LCHlch(27.83, 59.35, 307.79°)
OKLaboklab(39.36% 0.0594 -0.134)
OKLCHoklch(39.36% 0.147 293.9)
XYZxyz(8.6965, 5.3956, 25.0043)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E8B #6C8B2E
analogous
#2E3E8B #4D2E8B #7C2E8B
triadic
#4D2E8B #8B4D2E #2E8B4D
tetradic
#4D2E8B #8B2E3E #6C8B2E #2E8B7C
square
#4D2E8B #8B2E3E #6C8B2E #2E8B7C
split-complementary
#4D2E8B #8B7C2E #3E8B2E
monochromatic
#1A102F #341F5D #4D2E8B #663DB9 #8967CD

Accessibility & contrast

On white

10.10
#4D2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2E8B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E8B#FFFFFF#000000##FFFFFF
##4D2E8B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2e8b;
/* rgb */ color: rgb(77, 46, 139);
/* oklch */ color: oklch(39.4% 0.147 293.9);
Tailwind
colors: {
  custom: {
    50: '#8469ae',
    500: '#4d2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e8b;
$custom-light: #8469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e8b",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 260,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39362,
    "c": 0.14659,
    "h": 293.9
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#4D2E8B
secondary
#98B361
accent
#DA4EAB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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