#4A1A88#4A1A88

#4A1A88 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.167 H 296.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#4A1A88
RGBrgb(74, 26, 136)
HSLhsl(266, 68%, 32%)
HSVhsv(266, 81%, 53%)
CMYKcmyk(45.6%, 80.9%, 0%, 46.7%)
CIE-LABlab(23.58, 45.15, -51.99)
CIE-LCHlch(23.58, 68.86, 310.97°)
OKLaboklab(36.18% 0.0751 -0.1489)
OKLCHoklch(36.18% 0.167 296.8)
XYZxyz(7.6362, 3.9720, 23.6521)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A88 #58881A
analogous
#1A2188 #4A1A88 #811A88
triadic
#4A1A88 #884A1A #1A884A
tetradic
#4A1A88 #881A21 #58881A #1A8881
square
#4A1A88 #881A21 #58881A #1A8881
split-complementary
#4A1A88 #88811A #21881A
monochromatic
#120621 #2E1055 #4A1A88 #6624BB #8442DB

Accessibility & contrast

On white

11.70
#4A1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A88
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A88#FFFFFF#000000##FFFFFF
##4A1A881.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#393951
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1a88;
/* rgb */ color: rgb(74, 26, 136);
/* oklch */ color: oklch(36.2% 0.167 296.8);
Tailwind
colors: {
  custom: {
    50: '#835dac',
    500: '#4a1a88',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a88;
$custom-light: #835dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a88",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 266.182,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3618,
    "c": 0.16681,
    "h": 296.8
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#4A1A88
secondary
#87BB43
accent
#EB3D9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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