#3A1775#3A1775

#3A1775 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.147 H 293.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#3A1775
RGBrgb(58, 23, 117)
HSLhsl(262, 67%, 27%)
HSVhsv(262, 80%, 46%)
CMYKcmyk(50.4%, 80.3%, 0%, 54.1%)
CIE-LABlab(19.21, 38.79, -47.17)
CIE-LCHlch(19.21, 61.07, 309.43°)
OKLaboklab(32.11% 0.0578 -0.1354)
OKLCHoklch(32.11% 0.147 293.1)
XYZxyz(5.2613, 2.7965, 17.0887)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1775 #527517
analogous
#172375 #3A1775 #691775
triadic
#3A1775 #753A17 #17753A
tetradic
#3A1775 #751723 #527517 #177569
square
#3A1775 #751723 #527517 #177569
split-complementary
#3A1775 #756917 #237517
monochromatic
#0D051A #210D42 #3A1775 #5321A8 #6E30D6

Accessibility & contrast

On white

13.47
#3A1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1775
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1775#FFFFFF#000000##FFFFFF
##3A17751.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#273145
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1775;
/* rgb */ color: rgb(58, 23, 117);
/* oklch */ color: oklch(32.1% 0.147 293.1);
Tailwind
colors: {
  custom: {
    50: '#77599e',
    500: '#3a1775',
    950: '#000000',
  },
}
SCSS
$custom: #3a1775;
$custom-light: #77599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1775",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 262.34,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3211,
    "c": 0.14719,
    "h": 293.1
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#3A1775
secondary
#82AA3D
accent
#EA3EAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1775

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

Preview Lab → · Contrast checker → · Palette generator →

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