#4B1F88#4B1F88

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

Color values

HEX#4B1F88
RGBrgb(75, 31, 136)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 77%, 53%)
CMYKcmyk(44.9%, 77.2%, 0%, 46.7%)
CIE-LABlab(24.49, 43.07, -50.49)
CIE-LCHlch(24.49, 66.36, 310.47°)
OKLaboklab(36.85% 0.0724 -0.1446)
OKLCHoklch(36.85% 0.162 296.6)
XYZxyz(7.8344, 4.2532, 23.6960)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F88 #5C881F
analogous
#1F2788 #4B1F88 #7F1F88
triadic
#4B1F88 #884B1F #1F884B
tetradic
#4B1F88 #881F27 #5C881F #1F887F
square
#4B1F88 #881F27 #5C881F #1F887F
split-complementary
#4B1F88 #887F1F #27881F
monochromatic
#140824 #301456 #4B1F88 #662ABA #854BD6

Accessibility & contrast

On white

11.35
#4B1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4B1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F88
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F88#FFFFFF#000000##FFFFFF
##4B1F881.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#3B3B52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b1f88;
/* rgb */ color: rgb(75, 31, 136);
/* oklch */ color: oklch(36.8% 0.162 296.6);
Tailwind
colors: {
  custom: {
    50: '#8460ac',
    500: '#4b1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f88;
$custom-light: #8460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f88",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 265.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36847,
    "c": 0.16167,
    "h": 296.6
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#4B1F88
secondary
#8AB94A
accent
#E642A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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