#4D2F9B#4D2F9B

#4D2F9B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.165 H 289.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4D2F9B
RGBrgb(77, 47, 155)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 70%, 61%)
CMYKcmyk(50.3%, 69.7%, 0%, 39.2%)
CIE-LABlab(29.35, 40.49, -54.26)
CIE-LCHlch(29.35, 67.70, 306.73°)
OKLaboklab(40.87% 0.056 -0.1556)
OKLCHoklch(40.87% 0.165 289.8)
XYZxyz(9.9918, 5.9770, 31.6312)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F9B #7D9B2F
analogous
#2F479B #4D2F9B #832F9B
triadic
#4D2F9B #9B4D2F #2F9B4D
tetradic
#4D2F9B #9B2F47 #7D9B2F #2F9B83
square
#4D2F9B #9B2F47 #7D9B2F #2F9B83
split-complementary
#4D2F9B #9B832F #479B2F
monochromatic
#1E133D #36216C #4D2F9B #6642C6 #8C71D4

Accessibility & contrast

On white

9.57
#4D2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F9B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F9B#FFFFFF#000000##FFFFFF
##4D2F9B1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#324A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2f9b;
/* rgb */ color: rgb(77, 47, 155);
/* oklch */ color: oklch(40.9% 0.165 289.8);
Tailwind
colors: {
  custom: {
    50: '#866ab9',
    500: '#4d2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f9b;
$custom-light: #866ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f9b",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 256.667,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40865,
    "c": 0.16542,
    "h": 289.8
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#4D2F9B
secondary
#A5BB6A
accent
#DD4BB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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