#4A1A8F#4A1A8F

#4A1A8F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.174 H 294.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4A1A8F
RGBrgb(74, 26, 143)
HSLhsl(265, 69%, 33%)
HSVhsv(265, 82%, 56%)
CMYKcmyk(48.3%, 81.8%, 0%, 43.9%)
CIE-LABlab(24.25, 46.99, -55.25)
CIE-LCHlch(24.25, 72.53, 310.38°)
OKLaboklab(36.85% 0.0728 -0.1585)
OKLCHoklch(36.85% 0.174 294.7)
XYZxyz(8.1500, 4.1776, 26.3582)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A8F #5F8F1A
analogous
#1A258F #4A1A8F #841A8F
triadic
#4A1A8F #8F4A1A #1A8F4A
tetradic
#4A1A8F #8F1A25 #5F8F1A #1A8F84
square
#4A1A8F #8F1A25 #5F8F1A #1A8F84
split-complementary
#4A1A8F #8F841A #258F1A
monochromatic
#140727 #2F115B #4A1A8F #6523C3 #8446DD

Accessibility & contrast

On white

11.44
#4A1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1A8F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A8F#FFFFFF#000000##FFFFFF
##4A1A8F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#353C55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1a8f;
/* rgb */ color: rgb(74, 26, 143);
/* oklch */ color: oklch(36.9% 0.174 294.7);
Tailwind
colors: {
  custom: {
    50: '#845db1',
    500: '#4a1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a8f;
$custom-light: #845db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a8f",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 264.615,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.17444,
    "h": 294.7
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#4A1A8F
secondary
#8DBF46
accent
#EC3CA4
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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