#4A1F88#4A1F88

#4A1F88 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.162 H 296.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4A1F88
RGBrgb(74, 31, 136)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 77%, 53%)
CMYKcmyk(45.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(24.36, 42.90, -50.70)
CIE-LCHlch(24.36, 66.41, 310.23°)
OKLaboklab(36.73% 0.0709 -0.1452)
OKLCHoklch(36.73% 0.162 296)
XYZxyz(7.7568, 4.2132, 23.6923)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F88 #5D881F
analogous
#1F2988 #4A1F88 #7E1F88
triadic
#4A1F88 #884A1F #1F884A
tetradic
#4A1F88 #881F29 #5D881F #1F887E
square
#4A1F88 #881F29 #5D881F #1F887E
split-complementary
#4A1F88 #887E1F #29881F
monochromatic
#140824 #2F1456 #4A1F88 #652ABA #844BD6

Accessibility & contrast

On white

11.40
#4A1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F88
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F88#FFFFFF#000000##FFFFFF
##4A1F881.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#393B52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1f88;
/* rgb */ color: rgb(74, 31, 136);
/* oklch */ color: oklch(36.7% 0.162 296.0);
Tailwind
colors: {
  custom: {
    50: '#835fac',
    500: '#4a1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f88;
$custom-light: #835fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f88",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 264.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.16157,
    "h": 296
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#4A1F88
secondary
#8BB94A
accent
#E642A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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