#3A1771#3A1771

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

Color values

HEX#3A1771
RGBrgb(58, 23, 113)
HSLhsl(263, 66%, 27%)
HSVhsv(263, 80%, 44%)
CMYKcmyk(48.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.82, 37.65, -45.24)
CIE-LCHlch(18.82, 58.86, 309.77°)
OKLaboklab(31.72% 0.059 -0.1297)
OKLCHoklch(31.72% 0.142 294.4)
XYZxyz(5.0311, 2.7044, 15.8765)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1771 #4E7117
analogous
#172171 #3A1771 #671771
triadic
#3A1771 #713A17 #17713A
tetradic
#3A1771 #711721 #4E7117 #177167
square
#3A1771 #711721 #4E7117 #177167
split-complementary
#3A1771 #716717 #217117
monochromatic
#0D0519 #200D3E #3A1771 #5421A4 #6F2ED4

Accessibility & contrast

On white

13.63
#3A1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1771
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1771#FFFFFF#000000##FFFFFF
##3A17711.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2A3043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1771;
/* rgb */ color: rgb(58, 23, 113);
/* oklch */ color: oklch(31.7% 0.142 294.4);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3a1771',
    950: '#000000',
  },
}
SCSS
$custom: #3a1771;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1771",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 263.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31717,
    "c": 0.14247,
    "h": 294.4
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#3A1771
secondary
#7EA73D
accent
#E93FA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1771

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

Preview Lab → · Contrast checker → · Palette generator →

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