#3A159F#3A159F

#3A159F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.4% C 0.197 H 282.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#3A159F
RGBrgb(58, 21, 159)
HSLhsl(256, 77%, 35%)
HSVhsv(256, 87%, 62%)
CMYKcmyk(63.5%, 86.8%, 0%, 37.6%)
CIE-LABlab(23.47, 51.44, -66.46)
CIE-LCHlch(23.47, 84.04, 307.74°)
OKLaboklab(36.4% 0.0438 -0.1916)
OKLCHoklch(36.4% 0.197 282.9)
XYZxyz(8.2691, 3.9385, 33.1186)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A159F #7A9F15
analogous
#15359F #3A159F #7F159F
triadic
#3A159F #9F3A15 #159F3A
tetradic
#3A159F #9F1535 #7A9F15 #159F7F
square
#3A159F #9F1535 #7A9F15 #159F7F
split-complementary
#3A159F #9F7F15 #359F15
monochromatic
#130733 #260E69 #3A159F #4E1CD5 #7248E7

Accessibility & contrast

On white

11.75
#3A159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A159F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A159F#FFFFFF#000000##FFFFFF
##3A159F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a159f;
/* rgb */ color: rgb(58, 21, 159);
/* oklch */ color: oklch(36.4% 0.197 282.9);
Tailwind
colors: {
  custom: {
    50: '#7f5bbd',
    500: '#3a159f',
    950: '#000000',
  },
}
SCSS
$custom: #3a159f;
$custom-light: #7f5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a159f",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 256.087,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36397,
    "c": 0.1966,
    "h": 282.9
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#3A159F
secondary
#A6C848
accent
#F335C0
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A159F

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

Preview Lab → · Contrast checker → · Palette generator →

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