#3A1159#3A1159

#3A1159 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.122 H 305.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#3A1159
RGBrgb(58, 17, 89)
HSLhsl(274, 68%, 21%)
HSVhsv(274, 81%, 35%)
CMYKcmyk(34.8%, 80.9%, 0%, 65.1%)
CIE-LABlab(15.60, 33.98, -34.66)
CIE-LCHlch(15.60, 48.54, 314.43°)
OKLaboklab(28.77% 0.0713 -0.0986)
OKLCHoklch(28.77% 0.122 305.9)
XYZxyz(3.7481, 2.0217, 9.6420)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1159 #305911
analogous
#161159 #3A1159 #591154
triadic
#3A1159 #593A11 #11593A
tetradic
#3A1159 #591611 #305911 #115459
square
#3A1159 #591611 #305911 #115459
split-complementary
#3A1159 #545911 #115916
monochromatic
#11051A #190726 #3A1159 #5B1B8C #7D25C0

Accessibility & contrast

On white

14.95
#3A1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1159
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1159#FFFFFF#000000##FFFFFF
##3A11591.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#342334
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1159;
/* rgb */ color: rgb(58, 17, 89);
/* oklch */ color: oklch(28.8% 0.122 305.9);
Tailwind
colors: {
  custom: {
    50: '#745488',
    500: '#3a1159',
    950: '#000000',
  },
}
SCSS
$custom: #3a1159;
$custom-light: #745488;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1159",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 274.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2877,
    "c": 0.12167,
    "h": 305.9
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#3A1159
secondary
#5C9234
accent
#EB3D88
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1159

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

Preview Lab → · Contrast checker → · Palette generator →

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