#3A1872#3A1872

#3A1872 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.143 H 293.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1872
RGBrgb(58, 24, 114)
HSLhsl(263, 65%, 27%)
HSVhsv(263, 79%, 45%)
CMYKcmyk(49.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(19.09, 37.45, -45.44)
CIE-LCHlch(19.09, 58.88, 309.49°)
OKLaboklab(31.94% 0.0578 -0.1303)
OKLCHoklch(31.94% 0.143 293.9)
XYZxyz(5.1080, 2.7676, 16.1814)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1872 #507218
analogous
#182372 #3A1872 #671872
triadic
#3A1872 #723A18 #18723A
tetradic
#3A1872 #721823 #507218 #187267
square
#3A1872 #721823 #507218 #187267
split-complementary
#3A1872 #726718 #237218
monochromatic
#0D0519 #200D3F #3A1872 #5423A5 #6E31D4

Accessibility & contrast

On white

13.52
#3A1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1872
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1872#FFFFFF#000000##FFFFFF
##3A18721.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#293044
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1872;
/* rgb */ color: rgb(58, 24, 114);
/* oklch */ color: oklch(31.9% 0.143 293.9);
Tailwind
colors: {
  custom: {
    50: '#77599b',
    500: '#3a1872',
    950: '#000000',
  },
}
SCSS
$custom: #3a1872;
$custom-light: #77599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1872",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 262.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.14254,
    "h": 293.9
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#3A1872
secondary
#80A73E
accent
#E840A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1872

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

Preview Lab → · Contrast checker → · Palette generator →

#3A1872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva