#4D1F88#4D1F88

#4D1F88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.162 H 297.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4D1F88
RGBrgb(77, 31, 136)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 77%, 53%)
CMYKcmyk(43.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(24.75, 43.41, -50.05)
CIE-LCHlch(24.75, 66.26, 310.94°)
OKLaboklab(37.09% 0.0755 -0.1432)
OKLCHoklch(37.09% 0.162 297.8)
XYZxyz(7.9933, 4.3352, 23.7034)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F88 #5A881F
analogous
#1F2588 #4D1F88 #811F88
triadic
#4D1F88 #884D1F #1F884D
tetradic
#4D1F88 #881F25 #5A881F #1F8881
square
#4D1F88 #881F25 #5A881F #1F8881
split-complementary
#4D1F88 #88811F #25881F
monochromatic
#150824 #311456 #4D1F88 #692ABA #884BD6

Accessibility & contrast

On white

11.25
#4D1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F88
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F88#FFFFFF#000000##FFFFFF
##4D1F881.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#3E3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1f88;
/* rgb */ color: rgb(77, 31, 136);
/* oklch */ color: oklch(37.1% 0.162 297.8);
Tailwind
colors: {
  custom: {
    50: '#8560ac',
    500: '#4d1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f88;
$custom-light: #8560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f88",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 266.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37086,
    "c": 0.16189,
    "h": 297.8
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#4D1F88
secondary
#88B94A
accent
#E6429E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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