#3A1759#3A1759

#3A1759 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.114 H 304.6°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#3A1759
RGBrgb(58, 23, 89)
HSLhsl(272, 59%, 22%)
HSVhsv(272, 74%, 35%)
CMYKcmyk(34.8%, 74.2%, 0%, 65.1%)
CIE-LABlab(16.67, 30.97, -32.93)
CIE-LCHlch(16.67, 45.20, 313.24°)
OKLaboklab(29.53% 0.0645 -0.0935)
OKLCHoklch(29.53% 0.114 304.6)
XYZxyz(3.8541, 2.2336, 9.6773)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1759 #365917
analogous
#191759 #3A1759 #591757
triadic
#3A1759 #593A17 #17593A
tetradic
#3A1759 #591917 #365917 #175759
square
#3A1759 #591917 #365917 #175759
split-complementary
#3A1759 #575917 #175919
monochromatic
#100618 #1A0A28 #3A1759 #5A248A #7930BA

Accessibility & contrast

On white

14.51
#3A1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A1759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1759
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1759#FFFFFF#000000##FFFFFF
##3A17591.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#342636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1759;
/* rgb */ color: rgb(58, 23, 89);
/* oklch */ color: oklch(29.5% 0.114 304.6);
Tailwind
colors: {
  custom: {
    50: '#735788',
    500: '#3a1759',
    950: '#000000',
  },
}
SCSS
$custom: #3a1759;
$custom-light: #735788;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1759",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 271.818,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29528,
    "c": 0.11363,
    "h": 304.6
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#3A1759
secondary
#63903C
accent
#E2468F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1759

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

Preview Lab → · Contrast checker → · Palette generator →

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