#3A1673#3A1673

#3A1673 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.146 H 293.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3A1673
RGBrgb(58, 22, 115)
HSLhsl(263, 68%, 27%)
HSVhsv(263, 81%, 45%)
CMYKcmyk(49.6%, 80.9%, 0%, 54.9%)
CIE-LABlab(18.85, 38.70, -46.48)
CIE-LCHlch(18.85, 60.48, 309.78°)
OKLaboklab(31.8% 0.0592 -0.1333)
OKLCHoklch(31.8% 0.146 293.9)
XYZxyz(5.1255, 2.7110, 16.4696)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1673 #4F7316
analogous
#162173 #3A1673 #691673
triadic
#3A1673 #733A16 #16733A
tetradic
#3A1673 #731621 #4F7316 #167369
square
#3A1673 #731621 #4F7316 #167369
split-complementary
#3A1673 #736916 #217316
monochromatic
#0D051A #200C40 #3A1673 #5420A6 #6E2DD7

Accessibility & contrast

On white

13.62
#3A1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1673
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1673#FFFFFF#000000##FFFFFF
##3A16731.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1673;
/* rgb */ color: rgb(58, 22, 115);
/* oklch */ color: oklch(31.8% 0.146 293.9);
Tailwind
colors: {
  custom: {
    50: '#77589c',
    500: '#3a1673',
    950: '#000000',
  },
}
SCSS
$custom: #3a1673;
$custom-light: #77589c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1673",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 263.226,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.1459,
    "h": 293.9
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#3A1673
secondary
#7FA93C
accent
#EB3DA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1673

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

Preview Lab → · Contrast checker → · Palette generator →

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