#3A1472#3A1472

#3A1472 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.147 H 294.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#3A1472
RGBrgb(58, 20, 114)
HSLhsl(264, 70%, 26%)
HSVhsv(264, 82%, 45%)
CMYKcmyk(49.1%, 82.5%, 0%, 55.3%)
CIE-LABlab(18.43, 39.34, -46.52)
CIE-LCHlch(18.43, 60.92, 310.22°)
OKLaboklab(31.48% 0.0612 -0.1334)
OKLCHoklch(31.48% 0.147 294.6)
XYZxyz(5.0315, 2.6146, 16.1559)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1472 #4C7214
analogous
#141D72 #3A1472 #691472
triadic
#3A1472 #723A14 #14723A
tetradic
#3A1472 #72141D #4C7214 #147269
square
#3A1472 #72141D #4C7214 #147269
split-complementary
#3A1472 #726914 #1D7214
monochromatic
#0D051A #200B3E #3A1472 #541DA6 #6F27D9

Accessibility & contrast

On white

13.79
#3A1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1472
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1472#FFFFFF#000000##FFFFFF
##3A14721.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#292F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1472;
/* rgb */ color: rgb(58, 20, 114);
/* oklch */ color: oklch(31.5% 0.147 294.6);
Tailwind
colors: {
  custom: {
    50: '#77579b',
    500: '#3a1472',
    950: '#000000',
  },
}
SCSS
$custom: #3a1472;
$custom-light: #77579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1472",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 264.255,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.1468,
    "h": 294.6
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#3A1472
secondary
#7CA839
accent
#ED3BA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1472

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

Preview Lab → · Contrast checker → · Palette generator →

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