#4A1F84#4A1F84

#4A1F84 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.157 H 297.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4A1F84
RGBrgb(74, 31, 132)
HSLhsl(266, 62%, 32%)
HSVhsv(266, 77%, 52%)
CMYKcmyk(43.9%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.00, 41.81, -48.78)
CIE-LCHlch(24.00, 64.25, 310.60°)
OKLaboklab(36.36% 0.0719 -0.1396)
OKLCHoklch(36.36% 0.157 297.2)
XYZxyz(7.4778, 4.1016, 22.2230)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F84 #59841F
analogous
#1F2684 #4A1F84 #7D1F84
triadic
#4A1F84 #844A1F #1F844A
tetradic
#4A1F84 #841F26 #59841F #1F847D
square
#4A1F84 #841F26 #59841F #1F847D
split-complementary
#4A1F84 #847D1F #26841F
monochromatic
#120821 #2E1352 #4A1F84 #662BB6 #8449D4

Accessibility & contrast

On white

11.54
#4A1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F84
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F84#FFFFFF#000000##FFFFFF
##4A1F841.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#3B3950
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1f84;
/* rgb */ color: rgb(74, 31, 132);
/* oklch */ color: oklch(36.4% 0.157 297.2);
Tailwind
colors: {
  custom: {
    50: '#835fa9',
    500: '#4a1f84',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f84;
$custom-light: #835fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f84",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 265.545,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36365,
    "c": 0.15699,
    "h": 297.2
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#4A1F84
secondary
#88B748
accent
#E543A0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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