#3A2096#3A2096

#3A2096 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.177 H 283.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#3A2096
RGBrgb(58, 32, 150)
HSLhsl(253, 65%, 36%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(61.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(24.11, 44.07, -59.87)
CIE-LCHlch(24.11, 74.34, 306.35°)
OKLaboklab(36.55% 0.041 -0.1726)
OKLCHoklch(36.55% 0.177 283.4)
XYZxyz(7.7648, 4.1340, 29.2370)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2096 #7C9620
analogous
#204196 #3A2096 #752096
triadic
#3A2096 #963A20 #20963A
tetradic
#3A2096 #962041 #7C9620 #209675
square
#3A2096 #962041 #7C9620 #209675
split-complementary
#3A2096 #967520 #419620
monochromatic
#130A31 #261564 #3A2096 #4E2BC8 #7356DB

Accessibility & contrast

On white

11.49
#3A2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2096
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2096#FFFFFF#000000##FFFFFF
##3A20961.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2096;
/* rgb */ color: rgb(58, 32, 150);
/* oklch */ color: oklch(36.5% 0.177 283.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fb6',
    500: '#3a2096',
    950: '#000000',
  },
}
SCSS
$custom: #3a2096;
$custom-light: #7c5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2096",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 253.22,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36548,
    "c": 0.17742,
    "h": 283.4
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#3A2096
secondary
#A7BE53
accent
#E840C3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2096

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

Preview Lab → · Contrast checker → · Palette generator →

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