#4D2EB8#4D2EB8

#4D2EB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.201 H 284.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4D2EB8
RGBrgb(77, 46, 184)
HSLhsl(253, 60%, 45%)
HSVhsv(253, 75%, 72%)
CMYKcmyk(58.2%, 75%, 0%, 27.8%)
CIE-LABlab(31.79, 49.55, -67.70)
CIE-LCHlch(31.79, 83.89, 306.20°)
OKLaboklab(43.4% 0.0507 -0.195)
OKLCHoklch(43.4% 0.201 284.6)
XYZxyz(12.6866, 6.9917, 46.0191)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EB8 #99B82E
analogous
#2E54B8 #4D2EB8 #922EB8
triadic
#4D2EB8 #B84D2E #2EB84D
tetradic
#4D2EB8 #B82E54 #99B82E #2EB892
square
#4D2EB8 #B82E54 #99B82E #2EB892
split-complementary
#4D2EB8 #B8922E #54B82E
monochromatic
#241656 #392287 #4D2EB8 #6D50D3 #9681DF

Accessibility & contrast

On white

8.76
#4D2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4D2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EB8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EB8#FFFFFF#000000##FFFFFF
##4D2EB81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#105571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d2eb8;
/* rgb */ color: rgb(77, 46, 184);
/* oklch */ color: oklch(43.4% 0.201 284.6);
Tailwind
colors: {
  custom: {
    50: '#8b6acf',
    500: '#4d2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #4d2eb8;
$custom-light: #8b6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2eb8",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 253.478,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43395,
    "c": 0.20148,
    "h": 284.6
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#4D2EB8
secondary
#B7C879
accent
#E345C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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