#3A1772#3A1772

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

Color values

HEX#3A1772
RGBrgb(58, 23, 114)
HSLhsl(263, 66%, 27%)
HSVhsv(263, 80%, 45%)
CMYKcmyk(49.1%, 79.8%, 0%, 55.3%)
CIE-LABlab(18.92, 37.94, -45.72)
CIE-LCHlch(18.92, 59.41, 309.68°)
OKLaboklab(31.82% 0.0587 -0.1311)
OKLCHoklch(31.82% 0.144 294.1)
XYZxyz(5.0877, 2.7271, 16.1746)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1772 #4F7217
analogous
#172272 #3A1772 #681772
triadic
#3A1772 #723A17 #17723A
tetradic
#3A1772 #721722 #4F7217 #177268
square
#3A1772 #721722 #4F7217 #177268
split-complementary
#3A1772 #726817 #227217
monochromatic
#0D0519 #200D3F #3A1772 #5421A5 #6E2ED5

Accessibility & contrast

On white

13.59
#3A1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1772
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1772#FFFFFF#000000##FFFFFF
##3A17721.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1772;
/* rgb */ color: rgb(58, 23, 114);
/* oklch */ color: oklch(31.8% 0.144 294.1);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3a1772',
    950: '#000000',
  },
}
SCSS
$custom: #3a1772;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1772",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 263.077,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31815,
    "c": 0.14365,
    "h": 294.1
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#3A1772
secondary
#7FA83D
accent
#E93EA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1772

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

Preview Lab → · Contrast checker → · Palette generator →

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