#3A1672#3A1672

#3A1672 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.145 H 294.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3A1672
RGBrgb(58, 22, 114)
HSLhsl(263, 68%, 27%)
HSVhsv(263, 81%, 45%)
CMYKcmyk(49.1%, 80.7%, 0%, 55.3%)
CIE-LABlab(18.75, 38.42, -46.00)
CIE-LCHlch(18.75, 59.93, 309.87°)
OKLaboklab(31.7% 0.0595 -0.1319)
OKLCHoklch(31.7% 0.145 294.3)
XYZxyz(5.0683, 2.6881, 16.1681)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1672 #4E7216
analogous
#162072 #3A1672 #681672
triadic
#3A1672 #723A16 #16723A
tetradic
#3A1672 #721620 #4E7216 #167268
square
#3A1672 #721620 #4E7216 #167268
split-complementary
#3A1672 #726816 #207216
monochromatic
#0D051A #200C3F #3A1672 #5420A5 #6F2CD6

Accessibility & contrast

On white

13.66
#3A1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1672
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1672#FFFFFF#000000##FFFFFF
##3A16721.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1672;
/* rgb */ color: rgb(58, 22, 114);
/* oklch */ color: oklch(31.7% 0.145 294.3);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3a1672',
    950: '#000000',
  },
}
SCSS
$custom: #3a1672;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1672",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 263.478,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.14473,
    "h": 294.3
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#3A1672
secondary
#7EA83C
accent
#EB3DA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1672

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

Preview Lab → · Contrast checker → · Palette generator →

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